Part Number Hot Search : 
LAS8500P L1025 INTER MBT2222A CS51414G MUN22 1SV282 FMM5820X
Product Description
Full Text Search
 

To Download MCP3918A1T-ESS Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ? 2014 microchip technology inc. ds20005287a-page 1 mcp3918 features: ? one 24-bit resolution delta-sigma a/d converter ? 93.5 db sinad, -107 dbc total harmonic distortion (thd) (up to 35 th harmonic), 112 db spurious-free dynamic range (sfdr) ? flexible serial interface that includes both spi and a simple 2-wire interface ideal for polyphase shunt energy meters ? advanced security features: - 16-bit cyclic redundancy check (crc) checksum on all communications for secure data transfers - 16-bit crc checksum and interrupt alert for register-map configuration - register-map lock with 8-bit secure key ? 2.7v ? 3.6v av dd , dv dd ? programmable data rate, up to 125 ksps: - 4 mhz maximum sampling frequency - 16 mhz maximum master clock ? oversampling ratio, up to 4096 ? ultra low-power shutdown mode with < 10 a ? low-drift 1.2v internal voltage reference: 9 ppm/c ? differential voltage reference input pins ? high-gain programmable gain amplifier (pga) (up to 32 v/v) ? phase delay compensation with 1 s time resolution ? separate data ready pin for easy synchronization ? individual 24-bit digital offset and gain error correction ? high-speed 20 mhz spi interface with mode 0,0 and 1,1 compatibility ? continuous read/write modes for minimum communication with dedicated 16-/32-bit modes ? available in 20-lead qfn and ssop packages ? extended temperature range: -40c to +125c (all specifications are valid down to -45c) description: the mcp3918 is a 3v single-channel analog front end (afe), containing one delta-sigma, analog-to-digital converter (adc), one programmable gain amplifier (pga), phase delay compensation block, low-drift internal voltage reference, digital offset and gain errors calibration registers, and high-speed 20 mhz spi-compatible serial interface. the mcp3918 adc is fully configurable with features such as: 16-/24-bit resolution, oversampling ratio (osr) from 32 to 4096, gain from 1x to 32x, independent shutdown and reset, dithering and auto-zeroing. communication is largely simplified with 8-bit commands, including various continuous read/write modes and 16-/24-/32-bit data formats that can be accessed by the direct memory access (dma) of an 8-/16-/32-bit mcu, and with the separate data ready pin that can be directly connected to an interrupt request (irq) input of an mcu. the mcp3918 includes advanced security features to secure the communications and the configuration settings, such as a crc-16 checksum on both serial data outputs and on the register-map static configuration. it also includes a register-map lock through an 8-bit password to avoid the processing of any unwanted write commands. for polyphase shunt-based energy meters, the mcp3918 2-wire serial interface greatly reduces system cost, requiring only a single bidirectional isolator per phase. the mcp3918 is capable of interfacing a variety of voltage and current sensors, including shunts, current transformers, rogowski coils and hall effect sensors. applications: ? single-phase and polyphase energy meters ? energy metering and power measurement ? automotive ? portable instrumentation ? medical and power monitoring ? audio/voice recognition ? isolator sensor application 3v single-channel analog front end
mcp3918 ds20005287a-page 2 ? 2014 microchip technology inc. package type functional block diagram osc1/clki /gain0 1 2 3 4 20 19 18 17 16 15 14 13 5 6 7 8 osc2 /mode sdi/ osr1 reset /osr0 dv dd av dd ch0+ ch0- nc 12 9 dgnd mdat0 nc dr /gain1 nc agnd sdo 11 10 refin+/out refin- cs /boost sck /mclk sdo 2 nc nc ch0+ sck/ mclk cs / boost refin+/out osc2/ mode refin- dgnd nc osc1/clki/ gain0 av dd dv dd reset / osr0 sdi/ osr1 ch0- ep 20 1 19 18 17 3 4 14 13 12 11 6789 21 5 10 15 16 agnd mdat0 dr / gain1 mcp3918 4x4qfn* mcp3918 ssop * includes exposed thermal pad (ep); see tab l e 3 - 1 . ch0+ ch0- single-channel     adc analog digital - + pga     modulator amclk dmclk/drclk data_ch0 <23:0> refin+/out refin- av dd a gnd d gnd dv dd mod<3:0> por av dd monitoring vref+ vref- vrefext voltage reference v ref + - por dv dd monitoring sdo sdi/osr1 sck xtal oscillator mclk osc1/clki/gain0 osc2/mode dr/gain1 reset/osr0 digital interfaces (spi & 2-wire) clock generation modulator output block mdat0 dmclk osr<2:0> pre<1:0> en_mdat cs/boost + offcal_ch0 <23:0> gaincal_ch0 <23:0> x sinc 3 + sinc 1 phase shifter phase <11:0> mod <3:0>
? 2014 microchip technology inc. ds20005287a-page 3 mcp3918 1.0 electrical characteristics absolute maximum ratings ? v dd ..................................................................... -0.3v to 4.0v digital inputs and outputs w.r.t. a gnd ................ --0.3v to 4.0v analog input w.r.t. a gnd ..................................... ....-2v to +2v v ref input w.r.t. a gnd ............................... -0.6v to v dd +0.6v storage temperature .....................................-65c to +150c ambient temp. with power applied ................-65c to +125c soldering temperature of leads (10 seconds) ............. +300c esd on the analog inputs (hbm, mm) ................ 4.0 kv, 200v esd on all other pins (hbm, mm) ....................... 4.0 kv, 200v ? notice : stresses above those listed under ?absolute maximum ratings? may cause permanent damage to the device. this is a stress rating only and functional operation of the device at those or any other conditions, above those indicated in the operational listings of this specification, is not implied. exposure to maximum rating conditions for extended periods may affect device reliability. 1.1 electrical specifications table 1-1: analog specifications electrical specifications: unless otherwise indicated, all parameters apply at av dd =dv dd =3v, mclk=4mhz; pre<1:0> = 00 ; osr = 256; gain = 1; vrefext = 0 , clkext = 1 , dither<1:0> = 11 ; boost<1:0> = 10 , v cm =0v; t a = -40c to +125c ( note 1 ); v in =1.2v pp = -0.5 dbfs @ 50/60 hz on all channels. characteristic sym. min. typ. max. units conditions adc performance resolution (no missing codes) 24 ? ? bits osr = 256 or greater sampling frequency f s (dmclk) ? 1 4 mhz for maximum condition, boost<1:0> = 11 output data rate f d (drclk) ? 4 125 ksps for maximum condition, boost<1:0> = 11 , osr = 32 analog input absolute voltage on ch0+/- pins ch0+/- -1 ? +1 v all analog input channels, measured to a gnd analog input leakage current i in ? +/-1 ? na reset<0> = 1 , mclk running continuously differential input voltage range (ch 0+ -ch 0- ) -600/gain ? +600/gain mv v ref =1.2v, proportional to v ref offset error v os -1 0.2 1 mv note 5 offset error drift ? 0.5 ? v/c gain error ge -4 ? +4 % note 5 gain error drift ? 1 ? ppm/c integral non-linearity inl ? 5 ? ppm note 1: all specifications ar e valid down to -45c. 2: this specification implies that the adc output is valid over th is entire differential range and that there is no distortion or instability across this input range. dynamic performance specified at -0.5 db below the maximum signal range, v in =1.2v pp = 424 mv rms , v ref = 1.2v @ 50/60 hz. see section 4.0 ?terminology and formulas? for definition. this parameter is established by characterization and not 100% tested. 3: for these operating currents, the following configuration bit settings apply: shutdown<0> = 0 , reset<0> = 0 , vrefext = 0 , clkext = 0 . 4: for these operating currents, the following configuration bit settings apply: shutdown<0> = 1 , vrefext = 1 , clkext = 1 . 5: applies to all gains. offset and gain errors depend on the pga gain setting. see section 2.0 ?typical performance curves? for typical performance. 6: outside this range, the adc accuracy is not specified. an extended input range of +/-2v can be applied continuously to the part, with no damage. 7: for proper operation and for optimizing the adc accuracy, amclk should be limited to the maximum frequency defined in ta b l e 5 - 2 , as a function of the boost and pga setting chosen. mclk can take larger values as long as the prescaler settings (pre<1:0>) limit amcl k = mclk/prescale within the defined range in table 5-2 .
mcp3918 ds20005287a-page 4 ? 2014 microchip technology inc. measurement error me ? 0.1 ? % measured with a 10,000:1 dynamic range (from 600 mvpeak to 6 vpeak), av dd =dv dd =3v, measurement points averaging time: 20 seconds. differential input impedance z in 232 ? ? k ? g = 1, proportional to 1/amclk 142 ? ? k ? g = 2, proportional to 1/amclk 72 ? ? k ? g = 4, proportional to 1/amclk 38 ? ? k ? g = 8, proportional to 1/amclk 36 ? ? k ? g = 16, proportional to 1/amclk 33 ? ? k ? g = 32, proportional to 1/amclk signal-to-noise and distortion ratio ( note 2 ) sinad 9293.5? db total harmonic distor- tion ( note 2 ) thd ? -107 -103 dbc includes the first 35 harmonics signal-to-noise ratio ( note 2 ) snr 92 94 ? db spurious-free dynamic range ( note 2 ) sfdr ? 112 ? dbfs ac power supply rejection ac psrr ? -73 ? db av dd =dv dd =3v+0.6v pp 50/60 hz, 100/120 hz dc power supply rejection dc psrr ? -73 ? db av dd =dv dd = 2.7v to 3.6v dc common mode rejection dc cmrr ? -105 ? db v cm from -1v to +1v table 1-1: analog specifications (continued) electrical specifications: unless otherwise indicated, all parameters apply at av dd =dv dd =3v, mclk=4mhz; pre<1:0> = 00 ; osr = 256; gain = 1; vrefext = 0 , clkext = 1 , dither<1:0> = 11 ; boost<1:0> = 10 , v cm =0v; t a = -40c to +125c ( note 1 ); v in =1.2v pp = -0.5 dbfs @ 50/60 hz on all channels. characteristic sym. min. typ. max. units conditions note 1: all specifications ar e valid down to -45c. 2: this specification implies that the adc output is valid over this entire differential range and that there is no distortion or instability across this input range. dynamic performance specified at -0.5 db below the maximum signal range, v in =1.2v pp = 424 mv rms , v ref = 1.2v @ 50/60 hz. see section 4.0 ?terminology and formulas? for definition. this parameter is established by characterization and not 100% tested. 3: for these operating currents, the following configuration bit settings apply: shutdown<0> = 0 , reset<0> = 0 , vrefext = 0 , clkext = 0 . 4: for these operating currents, the following configuration bit settings apply: shutdown<0> = 1 , vrefext = 1 , clkext = 1 . 5: applies to all gains. offset and gain errors depend on the pga gain setting. see section 2.0 ?typical performance curves? for typical performance. 6: outside this range, the adc accuracy is not specified. an extended input range of +/-2v can be applied continuously to the part, with no damage. 7: for proper operation and for optimizing the adc accuracy, amclk should be limited to the maximum frequency defined in ta b l e 5 - 2 , as a function of the boost and pga setting chosen. mclk can take larger values as long as the prescaler settings (pre<1:0>) limit amcl k = mclk/prescale within the defined range in table 5-2 .
? 2014 microchip technology inc. ds20005287a-page 5 mcp3918 internal voltage reference to l e r a n c e v ref 1.176 1.2 1.224 v vrefext = 0 , t a =+25c only temperature coefficient tcv ref ?9?ppm/ct a = -40c to +125c, vrefext = 0 output impedance zoutv ref ?0.6? k ? vrefext = 0 internal voltage refer- ence operating current ai dd v ref ? 54 ? a vrefext = 0 , shutdown<0> = 1 voltage reference input input capacitance ? ? 10 pf differential input voltage range (v ref+ ?v ref- ) v ref 1.1 ? 1.3 v vrefext = 1 absolute voltage on refin+ pin v ref+ v ref- +1.1 ? v ref- + 1.3 v vrefext = 1 absolute voltage on refin- pin v ref- -0.1 ? +0.1 v refin- should be connected to a gnd when vrefext = 0 master clock input master clock input frequency range f mclk ? 20 mhz clkext = 1 ( note 7 ) crystal oscillator operating frequency range f xtal 1 ? 20 mhz clkext = 0 ( note 7 ) analog master clock amclk ? ? 16 mhz note 7 crystal oscillator operating current diddxtal ? 80 ? a clkext = 0 power supply operating voltage, analog av dd 2.7 ? 3.6 v operating voltage, digital dv dd 2.7 ? 3.6 v operating current, analog ( note 3 ) i dd,a ? 0.8 1 ma boost<1:0> = 00 ?11.2maboost<1:0>= 01 ? 1.3 1.7 ma boost<1:0> = 10 ? 2.2 2.9 ma boost<1:0> = 11 table 1-1: analog specifications (continued) electrical specifications: unless otherwise indicated, all parameters apply at av dd =dv dd =3v, mclk=4mhz; pre<1:0> = 00 ; osr = 256; gain = 1; vrefext = 0 , clkext = 1 , dither<1:0> = 11 ; boost<1:0> = 10 , v cm =0v; t a = -40c to +125c ( note 1 ); v in =1.2v pp = -0.5 dbfs @ 50/60 hz on all channels. characteristic sym. min. typ. max. units conditions note 1: all specifications ar e valid down to -45c. 2: this specification implies that the adc output is valid over th is entire differential range and that there is no distortion or instability across this input range. dynamic performance specified at -0.5 db below the maximum signal range, v in =1.2v pp = 424 mv rms , v ref = 1.2v @ 50/60 hz. see section 4.0 ?terminology and formulas? for definition. this parameter is established by characterization and not 100% tested. 3: for these operating currents, the following configuration bit settings apply: shutdown<0> = 0 , reset<0> = 0 , vrefext = 0 , clkext = 0 . 4: for these operating currents, the following configuration bit settings apply: shutdown<0> = 1 , vrefext = 1 , clkext = 1 . 5: applies to all gains. offset and gain errors depend on the pga gain setting. see section 2.0 ?typical performance curves? for typical performance. 6: outside this range, the adc accuracy is not specified. an extended input range of +/-2v can be applied continuously to the part, with no damage. 7: for proper operation and for optimizing the adc accuracy, amclk should be limited to the maximum frequency defined in ta b l e 5 - 2 , as a function of the boost and pga setting chosen. mclk can take larger values as long as the prescaler settings (pre<1:0>) limit amcl k = mclk/prescale within the defined range in table 5-2 .
mcp3918 ds20005287a-page 6 ? 2014 microchip technology inc. 1.2 serial interface characteristics operating current, digital i dd,d ? 0.2 0.3 ma mclk = 4 mhz, proportional to mclk ?0.7? mamclk=16mhz, proportional to mclk shutdown current, analog i dds,a ?? 1 aav dd pin only ( note 4 ) shutdown current, digital i dds,d ?? 2 adv dd pin only ( note 4 ) pull-down current on osc2 pin (external clock mode) i osc2 ? 35 ? a clkext = 1 table 1-2: serial dc characteristics electrical specifications: unless otherwise indicated, all parameters apply at dv dd = 2.7 to 3.6 v, t a = -40c to +125c ( note 1 ), c load = 30 pf, applies to all digital i/o. characteristic sym. min. typ. max. units conditions high-level input voltage v ih 0.7 dv dd ? ? v schmitt-triggered low-level input voltage v il ??0.3 dv dd v schmitt-triggered input leakage current i li ? ? 1 a cs =dv dd , v in =d gnd to dv dd output leakage current i lo ? ? 1 a cs =dv dd , v out =d gnd or dv dd hysteresis of schmitt-triggered inputs v hys ?300? mvdv dd = 3.3v only ( note 3 ) low-level output voltage v ol ? ? 0.4v v i ol =+1.7ma, dv dd =3.3v high-level output voltage v oh dv dd -0.5 ? ? v i oh =-1.7ma, dv dd =3.3v internal capacitance (all inputs and outputs) c int ??7 pft a = +25c, sck = 1.0 mhz, dv dd =3.3v ( note 2 ) note 1: all specifications are valid down to -45c. 2: this parameter is periodically sampled and not 100% tested. 3: this parameter is established by characterization and not production tested. table 1-1: analog specifications (continued) electrical specifications: unless otherwise indicated, all parameters apply at av dd =dv dd =3v, mclk=4mhz; pre<1:0> = 00 ; osr = 256; gain = 1; vrefext = 0 , clkext = 1 , dither<1:0> = 11 ; boost<1:0> = 10 , v cm =0v; t a = -40c to +125c ( note 1 ); v in =1.2v pp = -0.5 dbfs @ 50/60 hz on all channels. characteristic sym. min. typ. max. units conditions note 1: all specifications ar e valid down to -45c. 2: this specification implies that the adc output is valid over this entire differential range and that there is no distortion or instability across this input range. dynamic performance specified at -0.5 db below the maximum signal range, v in =1.2v pp = 424 mv rms , v ref = 1.2v @ 50/60 hz. see section 4.0 ?terminology and formulas? for definition. this parameter is established by characterization and not 100% tested. 3: for these operating currents, the following configuration bit settings apply: shutdown<0> = 0 , reset<0> = 0 , vrefext = 0 , clkext = 0 . 4: for these operating currents, the following configuration bit settings apply: shutdown<0> = 1 , vrefext = 1 , clkext = 1 . 5: applies to all gains. offset and gain errors depend on the pga gain setting. see section 2.0 ?typical performance curves? for typical performance. 6: outside this range, the adc accuracy is not specified. an extended input range of +/-2v can be applied continuously to the part, with no damage. 7: for proper operation and for optimizing the adc accuracy, amclk should be limited to the maximum frequency defined in ta b l e 5 - 2 , as a function of the boost and pga setting chosen. mclk can take larger values as long as the prescaler settings (pre<1:0>) limit amcl k = mclk/prescale within the defined range in table 5-2 .
? 2014 microchip technology inc. ds20005287a-page 7 mcp3918 table 1-3: serial ac characteristics electrical specifications: unless otherwise indicated, all parameters apply at dv dd = 2.7 to 3.6 v, t a = -40c to +125c ( note 1 ), gain = 1, c load =30pf. characteristic sym min typ max units conditions serial clock frequency f sck ?? 20mhz cs setup time t css 25 ? ? ns cs hold time t csh 50 ? ? ns cs disable time t csd 50 ? ? ns data setup time t su 5? ?ns data hold time t hd 10 ? ? ns serial clock high time t hi 20 ? ? ns serial clock low time t lo 20 ? ? ns serial clock delay time t cld 50 ? ? ns serial clock enable time t cle 50 ? ? ns output valid from sck low t do ? ? 25 ns output hold time t ho 0? ?ns output disable time t dis ? ? 25 ns reset pulse width (reset ) t mclr 100 ? ? ns data transfer time to dr (data ready) t dodr ? ? 25 ns note 2 modulator mode entry to modulator data present t modsu ?? 100ns data ready pulse low time t drp ? 1/(2 x dmclk) ? s 2-wire mode enable time t mode ? ? 50 ns 2-wire mode watchdog timer t watch 3.5 ? 35 s note 1: all specifications are valid down to -45c. 2: this parameter is established by characterization and not production tested. table 1-4: temperature specifications electrical specifications: unless otherwise indicated, all parameters apply at av dd = 2.7 to 3.6v, dv dd = 2.7 to 3.6v. parameters sym. min. typ. max. units conditions temperature ranges operating temperature range t a -40 ? +125 c note 1 , note 2 storage temperature range t a -65 ? +150 c thermal package resistances thermal resistance, 20l 4x4 qfn ? ja ?46.2 ? c/w thermal resistance, 20l ssop ?? ja ?87.3 ? c/w note 1: the internal junction temperature (t j ) must not exceed the absolute maximum specification of +150c. 2: all specifications are valid down to -45c.
mcp3918 ds20005287a-page 8 ? 2014 microchip technology inc. figure 1-1: serial output timing diagram. figure 1-2: serial input timing diagram. figure 1-3: data ready pulse/sampling timing diagram. t csh t dis t hi t lo f sck cs sck sdo msb out lsb out sdi mode 1,1 mode 0,0 t ho t do don?t care cs sck sdi lsb in msb in mode 1,1 mode 0,0 t css t su t hd t csd t csh t cld t cle sdo hi-z t hi t lo f sck dr sck t drp sdo 1/f d t dodr
? 2014 microchip technology inc. ds20005287a-page 9 mcp3918 figure 1-4: timing diagrams, continued. figure 1-5: entering 2-wire interface mode timing diagram. cs v ih waveform for t dis hi-z 90% 10% t dis sdo sck sdo t do timing waveform for t do sdo osc2/ mode sck/mclk hi-z spi mode 2-wire mode av dd ,dv dd t mode 0 0 0
mcp3918 ds20005287a-page 10 ? 2014 microchip technology inc. notes:
? 2014 microchip technology inc. ds20005287a-page 11 mcp3918 2.0 typical performance curves note: unless otherwise indicated, av dd =3v, dv dd =3v; t a = +25c, mclk = 4 mhz; prescale = 1 ; osr = 256; gain = 1; dithering = maximum; v in = -0.5 dbfs @ 60 hz on all channels, vrefext = 0 ; clkext = 1 ; boost<1:0> = 10. figure 2-1: spectral response. figure 2-2: spectral response. figure 2-3: spectral response. figure 2-4: spectral response. figure 2-5: measurement error with 1-point calibration. figure 2-6: measurement error with 2-point calibration. note: the graphs and tables provided following this note are a statistical summary based on a limited number of samples and are provided for informational purposes only. the performance characteristics listed herein are not tested or guaranteed. in some graphs or tables, the data presented may be outside the specified operating range (e.g., outside specified power supply range) and therefore outside the warranted range. - 140 -120 -100 -80 -60 -40 -20 0 amplitude (db) v in = -0.5 dbfs @ 60 hz f d = 3.9 ksps osr = 256 dithering = off 16 ksamples fft -180 -160 140 0 500 1000 1500 2000 frequency (hz) 20 0 v in = -60 dbfs @ 60 hz -40 - 20 b ) f d = 3.9 ksps osr = 256 dithering = off -80 -60 de (d b 16 ksamples fft -120 -100 mplitu - 160 -140 a -180 - 160 0 500 1000 1500 2000 0 500 1000 1500 2000 frequency (hz) - 140 -120 -100 -80 -60 -40 -20 0 amplitude (db) v in = -0.5 dbfs @ 60 hz f d = 3.9 ksps osr = 256 dithering = maximum 16 ksamples fft -180 -160 140 0 500 1000 1500 2000 frequency (hz) 0 -40 -20 0 ) v in = -60 dbfs @ 60 hz f d = 3.9 ksps osr = 256 -80 -60 d e (db ) dithering = maximum 16 ksamples fft -120 -100 m plitu d -160 -140 a m -180 0 500 1000 1500 2000 frequency (hz) -1.0% -0.5% 0.0% 0.5% 1.0% 0.01 0.1 1 10 100 1000 measurement error (%) current channel input amplitude (mv peak ) % error channel 0,1 -1.0% -0.5% 0.0% 0.5% 1.0% 0.01 0.1 1 10 100 1000 measurement error (%) current channel input amplitude (mv peak ) % error channel 0,1
mcp3918 ds20005287a-page 12 ? 2014 microchip technology inc. note: unless otherwise indicated, av dd =3v, dv dd =3v; t a = +25c, mclk = 4 mhz; prescale = 1 ; osr = 256; gain = 1; dithering = maximum; v in = -0.5 dbfs @ 60 hz on all channels, vrefext = 0 ; clkext = 1 ; boost<1:0> = 10. figure 2-7: thd repeatability histogram. figure 2-8: spurious-free dynamic range repeatability histogram. figure 2-9: sinad repeatability histogram. figure 2-10: output noise histogram. figure 2-11: thd vs.osr. figure 2-12: sinad vs. osr. e rrenc e f occu e ncy o f f requ e -108.2 -107.8 -107.4 -107.0 -106.6 -106.2 f total harmonic distortion ( dbc) total harmonic distortion ( - dbc) q uency of occurrence 111.7 112.3 112.9 113.5 114.1 114.7 115.3 115.9 fre q spurious free dynamic range (dbfs) e u rrenc e o f occ u ency o frequ 93.3 93.4 93.5 93.6 93.7 93.8 signal to noise and distortion (db) signal to noise and distortion (db) u ency of occurrence standar deviation = 78 lsb noise = 7.4  vrms 16 ksamples 448 481 514 548 581 614 647 680 714 747 780 813 846 880 913 946 979 1,012 1,046 1,079 1,112 freq u output noise (lsb) -120 -115 -110 -105 -100 -95 -90 al harmonic distortion (dbc) dithering=maximum dithering=medium dithering=minimum dithering=off -130 -125 32 64 128 256 512 1024 2048 4096 tot oversampling ratio (osr) 110 95 100 105 nd d b) 85 90 95 n oise a r atio ( d 75 80 85 al-to- n o rtion r dithering = maximu 65 70 sign dist o dithering maximu m dithering=medium 60 32 64 128 256 512 1024 2048 4096 oversampling ratio (osr) oversampling ratio (osr)
? 2014 microchip technology inc. ds20005287a-page 13 mcp3918 note: unless otherwise indicated, av dd =3v, dv dd =3v; t a = +25c, mclk = 4 mhz; prescale = 1 ; osr = 256; gain = 1; dithering = maximum; v in = -0.5 dbfs @ 60 hz on all channels, vrefext = 0 ; clkext = 1 ; boost<1:0> = 10. figure 2-13: snr vs.osr. figure 2-14: sfdr vs. osr. figure 2-15: thd vs. mclk. figure 2-16: sinad vs. mclk. figure 2-17: snr vs. mclk. figure 2-18: sfdr vs. mclk. 110 95 100 105 ( db) 85 90 95 ratio ( 75 80 85 - noise dithering = maximum 65 70 75 nal-to - dithering maximum dithering=medium dithering=minimum dithering=off 60 32 64 128 256 512 1024 2048 4096 sig o li r ti (osr) o versamp li ng r a ti o (osr) 120 110 115 n amic ) 100 105 110 e e dy n ( dbfs ) 95 100 o us fr e r ange ( ditherin g =maximum 85 90 spuri o r g dithering=medium dithering=minimum dithering = off 80 32 64 128 256 512 1024 2048 4096 o li r ti (osr) dithering off o versamp li ng r a ti o (osr) 100 -95 -90 -85 -80 -75 -70 -65 -60 a l harmonic distortion (db) boost = 00 boost = 01 boost = 10 boost = 11 -110 -105 - 100 2 4 6 8 10 12 14 16 18 20 tot a mclk frequency (mhz) 100 90 95 e and 80 85 o -nois e t ortion db) 75 80 g nal-t o dis t ( 65 70 si g boost = 00 boost = 01 60 2 4 6 8 10 12 14 16 18 boost = 10 mclk frequency (mhz) 100 90 95 t io 80 85 ise ra t ) 75 80 -to-no (db ) 65 70 signal boost = 00 boost = 01 boost = 10 60 2 4 6 8 1012141618 boost = 10 boost = 11 mclk frequency (mhz) 120 110 amic 90 100 e e dyn ge f s) 80 90 o us fr e ran (db f 70 80 spuri o boost = 00 boost = 01 boost = 10 60 2 4 6 8 10 12 14 16 18 20 boost = 11 2 4 6 8 10 12 14 16 18 20 mclk frequency (mhz)
mcp3918 ds20005287a-page 14 ? 2014 microchip technology inc. note: unless otherwise indicated, av dd =3v, dv dd =3v; t a = +25c, mclk = 4 mhz; prescale = 1 ; osr = 256; gain = 1; dithering = maximum; v in = -0.5 dbfs @ 60 hz on all channels, vrefext = 0 ; clkext = 1 ; boost<1:0> = 10. figure 2-19: thd vs. gain. figure 2-20: sinad vs. gain. figure 2-21: snr vs. gain. figure 2-22: sfdr vs. gain. figure 2-23: thd vs. input signal amplitude. figure 2-24: sinad vs. input signal amplitude. -140 -120 -100 -80 -60 -40 -20 0 12481632 total harmonic distortion (db) gain (v/v) osr = 32 osr = 64 osr = 128 osr = 256 osr = 512 osr = 1024 osr = 2048 osr = 4096 0 20 40 60 80 100 120 12481632 signal-to-noise and distortion ratio (db) gain (v/v) osr = 32 osr = 64 osr = 128 osr = 256 osr = 512 osr = 1024 osr = 2048 osr = 4096 0 20 40 60 80 100 120 12481632 signal-to-noise ratio (db) gain (v/v) osr = 32 osr = 64 osr = 128 osr = 256 osr = 512 osr = 1024 osr = 2048 osr = 4096 0 20 40 60 80 100 120 140 12481632 spurious-free dynamic range (dbfs) gain (v/v) osr = 32 osr = 64 osr = 128 osr = 256 osr = 512 osr = 1024 osr = 2048 osr = 4096 -120 -100 -80 -60 -40 -20 0.001 0.01 0.1 1 10 100 1000 total harmonic distortion (db) input signal amplitude (mv pk ) gain = 1x gain = 2x gain = 4x gain = 8x gain = 16x gain = 32x -20 0 20 40 60 80 100 0.001 0.01 0.1 1 10 100 1000 signal-to-noise and distortion ratio (db) input signal amplitude (mv pk ) gain = 1x gain = 2x gain = 4x gain = 8x gain = 16x gain = 32x
? 2014 microchip technology inc. ds20005287a-page 15 mcp3918 note: unless otherwise indicated, av dd =3v, dv dd =3v; t a = +25c, mclk = 4 mhz; prescale = 1 ; osr = 256; gain = 1; dithering = maximum; v in = -0.5 dbfs @ 60 hz on all channels, vrefext = 0 ; clkext = 1 ; boost<1:0> = 10. figure 2-25: snr vs. input signal amplitude. figure 2-26: sfdr vs. input signal amplitude. figure 2-27: sinad vs. input frequency. figure 2-28: thd vs. temperature. figure 2-29: sinad vs. temperature. figure 2-30: snr vs. temperature. -20 0 20 40 60 80 100 0.001 0.01 0.1 1 10 100 1000 signal-to-noise ratio (db) input signal amplitude (mv pk ) gain = 1x gain = 2x gain = 4x gain = 8x gain = 16x gain = 32x 0 20 40 60 80 100 120 140 0.001 0.01 0.1 1 10 100 1000 spurious-free dynamic range (dbfs) input signal amplitude (mv pk ) gain = 1x gain = 2x gain = 4x gain = 8x gain = 16x gain = 32x 0 20 40 60 80 100 120 10 100 1000 10000 100000 signal-to-noise and distortion ratio (db) signal frequency (hz) osr = 32 osr = 64 osr = 128 osr = 256 osr = 512 osr = 1024 osr = 2048 osr = 4096 -120 -100 -80 -60 -40 -20 0 -50 -25 0 25 50 75 100 125 total harmonic distortion (db) temperature (c) gain = 1x gain = 2x gain = 4x gain = 8x gain = 16x gain = 32x 0 10 20 30 40 50 60 70 80 90 100 -50 -25 0 25 50 75 100 125 signal-to-noise and distortion ratio (db) temperature (c) gain = 1x gain = 2x gain = 4x gain = 8x gain = 16x gain = 32x 0 10 20 30 40 50 60 70 80 90 100 -50 -25 0 25 50 75 100 125 signal-to-noise ratio (db) temperature (c) gain = 1x gain = 2x gain = 4x gain = 8x gain = 16x gain = 32x
mcp3918 ds20005287a-page 16 ? 2014 microchip technology inc. note: unless otherwise indicated, av dd =3v, dv dd =3v; t a = +25c, mclk = 4 mhz; prescale = 1 ; osr = 256; gain = 1; dithering = maximum; v in = -0.5 dbfs @ 60 hz on all channels, vrefext = 0 ; clkext = 1 ; boost<1:0> = 10. figure 2-31: sfdr vs. temperature. figure 2-32: offset vs. temperature vs. gain. figure 2-33: gain error vs. temperature vs. gain. figure 2-34: internal voltage reference vs. temperature. figure 2-35: internal voltage reference vs. supply voltage. figure 2-36: integral non-linearity (dithering maximum). 0 20 40 60 80 100 120 -50 -25 0 25 50 75 100 125 spurious-free dynamic range (dbfs) temperature (c) gain = 1x gain = 2x gain = 4x gain = 8x gain = 16x gain = 32x -1000 -800 -600 -400 -200 0 200 400 600 800 1000 -40 -20 0 20 40 60 80 100 120 offset (v) temperature (c) gain = 1x gain = 2x gain = 4x gain = 8x gain = 16x gain = 32x -5 -3 -1 1 3 5 7 9 -40 -20 0 20 40 60 80 100 120 gain error (%) temperature (c) gain = 1x gain = 2x gain = 4x gain = 8x gain = 16x gain = 32x 1.197 1.198 1.199 1.2 -40 -20 0 20 40 60 80 100 120 140 internal voltage reference (v) temperature (c) 1.1961 1.1962 1.1963 1.1964 1.1965 1.1966 1.1967 1.1968 1.1969 2.5 2.6 2.7 2.8 2.9 3 3.1 3.2 3.3 3.4 3.5 3.6 internal voltage reference (v) av dd (v) -10 -8 -6 -4 -2 0 2 4 6 8 10 -0.6 -0.4 -0.2 0.0 0.2 0.4 0.6 integral non-linearity error (ppm) input voltage (v)
? 2014 microchip technology inc. ds20005287a-page 17 mcp3918 note: unless otherwise indicated, av dd =3v, dv dd =3v; t a = +25c, mclk = 4 mhz; prescale = 1 ; osr = 256; gain = 1; dithering = maximum; v in = -0.5 dbfs @ 60 hz on all channels, vrefext = 0 ; clkext = 1 ; boost<1:0> = 10. figure 2-37: integral non-linearity (dithering off). figure 2-38: operating current vs. mclk frequency vs. boost, v dd =3.0v. -10 -8 -6 -4 -2 0 2 4 6 8 10 -0.6 -0.4 -0.2 0.0 0.2 0.4 0.6 integral non-linearity error (ppm) input voltage (v) 0 0.25 0.5 0.75 1 1.25 1.5 1.75 2 2.25 2.5 2.75 3 2468101214161820 i dd (ma) mclk frequency (mhz) ai dd boost = 0.5 ai dd boost = 0.66 ai dd boost = 1 di dd ai dd boost = 2
mcp3918 ds20005287a-page 18 ? 2014 microchip technology inc. notes:
? 2014 microchip technology inc. ds20005287a-page 19 mcp3918 3.0 pin description the descriptions of the pins are listed in tab l e 3 - 1 . 3.1 master reset/osr0 logic input (reset /osr0) in spi mode, this pin is active low and places the entire chip in a reset state when active. when reset is logic low, all registers are reset to their default value, no communication can take place, and no clock is distributed inside the part, except in the input structure if mclk is applied (if mclk is idle, then no clock is distributed). this state is equivalent to a power-on reset (por) state. since the default state of the adc is on, the analog power consumption when reset is logic low is equivalent to when reset is logic high. only the digital power consumption is largely reduced because this current consumption is essentially dynamic and is reduced drastically when there is no clock running. if mclk is applied when reset is logic low, all the analog biases are enabled during a reset, so that the part is fully operational just after a reset rising edge. if mclk is not applied, there is a time after a hard reset when the conversion may not accurately correspond to the start-up of the input structure. this input is schmitt-triggered. in 2-wire interface mode, this is the osr0 logic select pin (see section 7.0 ?2-wire serial interface description? for the logic input table for osr0 and osr1). the pin state is latched when the mode changes to 2-wire interface mode, and is relatched at each watchdog timer reset. table 3-1: six-channel mcp3918 pin function table mcp3918 ssop mcp3918 qfn symbol function 1 18 reset / osr0 master reset logic input pin or osr0 logic input pin 219 dv dd digital power supply pin 320 av dd analog power supply pin 4 1 ch0+ non-inverting analog input pin for channel 0 5 2 ch0- inverting analog input pin for channel 0 6 3 nc not connected 7 4 nc not connected 85 a gnd analog ground pin, return path for internal analog circuitry 9 6 refin+/out non-inverting voltage reference input and internal reference output pin 10 7 refin- inverting voltage reference input pin 11 8 d gnd digital ground pin, return path for internal digital circuitry 12 9 nc not connected 13 10 mdat0 modulator data output pin for channel 0 14 11 dr /gain1 data ready signal output pin or gain1 logic input pin 15 12 osc1/clki / gain0 oscillator crystal connection pin or external clock input pin or gain0 logic input pin 16 13 osc2 / mode oscillator crystal connection input pin or serial interface mode logic input pin 17 14 cs /boost serial interface chip select input pin or boost logic input pin 18 15 sck / mclk serial interface clock pin or master clock input pin 19 16 sdo serial interface data input pin 20 17 sdi / osr1 serial interface data input pin or osr1 logic input pin ? 21 ep exposed thermal pad
mcp3918 ds20005287a-page 20 ? 2014 microchip technology inc. 3.2 digital v dd (dv dd ) dv dd is the power supply voltage for the digital circuitry within the mcp3918. for optimal performance, it is recommended to connect appropriate bypass capacitors (typically a 10 f in parallel with a 0.1 f ceramic). dv dd should be maintained between 2.7v and 3.6v for specified operation. 3.3 analog power supply (av dd ) av dd is the power supply voltage for the analog circuitry within the mcp3918. it is recommended to connect appropriate bypass capacitors (typically a 10 f in parallel with a 0.1 f ceramic). av dd should be maintained between 2.7v and 3.6v for specified operation. 3.4 adc differential analog inputs (ch0+/ch0-) the ch0+/- pins are the fully differential analog voltage inputs for the delta-sigma adc. the linear and specified region of the channels is dependent on the pga gain. this region corresponds to a differential voltage range of 600 mv/gain with v ref =1.2v. the maximum absolute voltage, with respect to a gnd , for each ch0+/- input pin is 1v with no distortion and 2v with no breaking after continuous voltage. this maximum absolute voltage is not proportional to the v ref voltage. 3.5 analog ground (a gnd ) a gnd is the ground reference voltage for the analog circuitry within the mcp3918. for optimal performance, it is recommended to connect it to the same ground node voltage as d gnd , preferably with a star connection. if an analog ground plane is available, it is recommended that these pins be tied to this plane of the printed circuit board (pcb). this plane should also reference all other analog circuitry in the system. 3.6 non-inverting reference input, internal reference output (refin+/out) this pin is the non-inverting side of the differential voltage reference input for the adc or the internal voltage reference output. when vrefext = 1 , an external voltage reference source can be used, and the internal voltage reference is disabled. when using an external differential voltage reference, it should be connected to its v ref+ pin. when using an external single-ended reference, it should be connected to this pin. when vrefext = 0 , the internal voltage reference is enabled and connected to this pin through a switch. this voltage reference has minimal drive capability and thus needs proper buffering and bypass capacitances (a 0.1 f ceramic capacitor is sufficient in most cases), if used as a voltage source. if the voltage reference is only used as an internal v ref , adding bypass capacitance on refin+/out is not necessary for keeping adc accuracy, but a minimal 0.1 f ceramic capacitance can be connected to avoid emi/emc susceptibility issues due to the antenna created by the refin+/out pin if left floating. 3.7 inverting reference input (refin-) this pin is the inverting side of the differential voltage reference input for the adc. when using an external differential voltage reference, it should be connected to its v ref- pin. when using an external single-ended voltage reference, or when vrefext = 0 (default) and using the internal voltage reference, the pin should be directly connected to a gnd . 3.8 digital ground connection (d gnd ) d gnd is the ground reference voltage for the digital circuitry within the mcp3918. for optimal performance, it is recommended to connect it to the same ground node voltage as a gnd , preferably with a star connection. if a digital ground plane is available, it is recommended that this pin be tied to this plane of the pcb. this plane should also reference all other digital circuitry in the system.
? 2014 microchip technology inc. ds20005287a-page 21 mcp3918 3.9 modulator output (mdat0) mdat0 is the output pin for the modulator serial bit streams of the adc. this pin is high-impedance when the en_mdat bit is logic low. when the en_mdat bit is enabled, the modulator bit stream of the adc is present on the pin and updated at the amclk frequency (see section 5.3.5 ?modulator output block? for a complete description of the modulator output). this pin can be directly connected to an mcu or a dsp when a specific digital filtering is needed. when the mdat0 output pin is enabled, the dr output is disabled. in 2-wire interface mode, this pin is automatically inactive. its state is high-impedance during the 2-wire mode (therefore this pin can be left grounded in applications using exclusively the 2-wire interface mode; this configuration improves the emi/emc susceptibility of the device). 3.10 data ready output/gain1 logic input (dr /gain1) in spi mode, the data ready pin indicates if a new conversion result is ready to be read. the default state of this pin is logic high when dr_hiz = 1 and is high-impedance when dr_hiz = 0 (default). after each conversion is finished, a logic low pulse will take place on the data ready pin to indicate the conversion result is ready as an interrupt. this pulse is synchronous with the master clock and has a defined and constant width. the data ready pin is independent from the spi interface and acts like an interrupt output. the data ready pin state is not latched, and the pulse width (and period) are both determined by the mclk frequency, oversampling rate, and internal clock prescale settings. the data ready pulse width is equal to half a dmclk period and the frequency of the pulses is equal to drclk (see figure 1-3 ). in 2-wire interface mode, this is the gain1 logic select pin. see section 7.0 ?2-wire serial interface description? for the logic input table for gain0 and gain1. the pin state is latched when the mode changes to 2-wire interface mode, and is relatched at each watchdog timer reset. 3.11 crystal oscillator/master clock input/gain0 logic input (osc1/clki/gain0) in spi mode, osc1/clki and osc2 provide the master clock for the device. when clkext = 0 , a resonant crystal or clock source with a similar sinusoidal waveform must be placed across the osc1 and osc2 pins to ensure proper operation. the typical clock frequency specified is 4 mhz. for proper operation and in order to optimize adc accuracy, amclk should be limited to the maximum frequency defined in tab l e 5 - 2 for the function of the boost and pga setting chosen. mclk can take larger values as long as the prescaler settings (pre<1:0>) limit amclk = mclk/prescale in the defined range in ta b l e 5 - 2 . appropriate load capacitance should be connected to these pins for proper operation. in 2-wire interface mode, this is the gain0 logic select pin. see section 7.0 ?2-wire serial interface description? for the logic input table for gain0 and gain1. the pin state is latched when the mode changes to 2-wire interface mode, and is relatched at each watchdog timer reset. 3.12 crystal oscillator output/ interface mode logic input (osc2/mode) when clkext = 0 (default), a resonant crystal or clock source with a similar sinusoidal waveform must be placed across the osc1 and osc2 pins to ensure proper operation. appropriate load capacitance should be connected to these pins for proper operation. when clkext = 1 (default condition at por), this pin is the mode selection pin for the digital interface. when mode is logic low, the spi interface is selected (see section 6.0 ?spi serial interface description? ). when mode is logic high, the 2-wire interface is selected (see section 7.0 ?2-wire serial interface description? ). the mode input is latched after a por, a master reset and/or a watchdog timer reset. note: this pin should not be left floating when the dr_hiz bit is low; a 100 k ? pull-up resistor connected to dv dd is recommended. note: when clkext = 1 , the crystal oscillator is disabled. osc1 becomes the master clock input clki, a direct path for an external clock source. one example would be a clock source generated by an mcu.
mcp3918 ds20005287a-page 22 ? 2014 microchip technology inc. 3.13 chip select/ boost logic input (cs/ boost) in spi mode, this pin is the spi chip select that enables serial communication. when this pin is logic high, no communication can take place. a chip select falling edge initiates serial communication, and a chip select rising edge terminates the communication. no communication can take place even when cs is logic low, if reset is also logic low. this input is schmitt-triggered. in the 2-wire interface mode, this is the boost logic select pin. see section 7.0 ?2-wire serial interface description? for the logic input table for boost. the pin state is latched when the mode changes to 2-wire interface mode, and is re-latched at each watchdog timer reset. 3.14 serial data clock/ master clock input (sck/mclk) in spi mode, this is the serial clock pin for spi communication. data is clocked into the device on the rising edge of sck. data is clocked out of the device on the falling edge of sck. the mcp3918 spi interface is compatible with spi 0,0 and 1,1 modes. spi modes can be changed during a cs high time. the maximum clock speed specified is 20 mhz. sck and mclk are two different and asynchronous clocks; sck is only required when a communication happens, while mclk is continuously required when the part is converting analog inputs. this input is schmitt-triggered. in the 2-wire interface mode, this pin is defining the master clock of the device (mclk) and the serial clock (sck) for the interface simultaneously. in this mode, the clock has to be provided continuously to ensure proper operation. see section 7.0 ?2-wire serial interface description? for more information and timing diagrams of the 2-wire interface protocol. 3.15 serial data output (sdo) this is the spi data output pin. data is clocked out of the device on the falling edge of sck. this pin remains in a high-impedance state during the command byte. it also stays high-impedance during the entire communication for write commands and when the cs pin is logic high or when the reset pin is logic low. this pin is active only when a read command is processed. the interface is half-duplex (inputs and outputs do not happen at the same time). in the 2-wire interface mode, this pin is the only digital output pin, and sends synchronous frames at each data ready with data bits clocked out on the falling edge of sck. 3.16 serial data/osr1 logic input (sdi/osr1) in spi mode, this is the spi data input pin. data is clocked into the device on the rising edge of sck. when cs is logic low, this pin is used to communicate with 8-bit commands followed by data bytes that can be 16-/24- or 32-bit wide. the interface is half-duplex (inputs and outputs do not happen at the same time). each communication starts with a chip select falling edge followed by an 8-bit command word, entered through the sdi pin. each command is either a read or a write command. toggling sdi during a read command has no effect. this input is schmitt-triggered. in 2-wire interface mode, this is the osr1 logic select pin. see section 7.0 ?2-wire serial interface description? for the logic input table for osr0 and osr1. the pin state is latched when the mode changes to 2-wire interface mode, and is relatched at each watchdog timer reset. 3.17 exposed pad (ep) exposed thermal pad. this pin must be connected to a gnd for optimal accuracy and thermal performance. this pad can also be left floating if necessary. connecting it to a gnd is preferable for the lowest noise performance and best thermal behavior.
? 2014 microchip technology inc. ds20005287a-page 23 mcp3918 4.0 terminology and formulas this section defines the terms and formulas used throughout this data sheet. the following terms are defined: ? mclk ? master clock ? amclk ? analog master clock ? dmclk ? digital master clock ? drclk ? data rate clock ? osr ? oversampling ratio ? offset error ? gain error ? integral non-linearity error ? signal-to-noise ratio (snr) ? signal-to-noise and distortion ratio (sinad) ? total harmonic distortion (thd) ? spurious-free dynamic range (sfdr) ? mcp3918 delta-sigma architecture ? idle tones ? dithering ? psrr ? cmrr ? adc reset mode ? hard reset mode (reset = 0 ) ? adc shutdown mode ? full shutdown mode 4.1 mclk ? master clock this is the fastest clock present on the device. this is the frequency of the crystal placed at the osc1/osc2 inputs when clkext = 0 or the frequency of the clock input at the osc1/clki when clkext = 1 . in the 2- wire mode, this is the frequency present at the sck input pin. see figure 4-1 . 4.2 amclk ? analog master clock amclk is the clock frequency that is present on the analog portion of the device, after prescaling has occurred via the pre<1:0> bits in the config0 register (see equation 4-1 ). the analog portion includes the pga and one delta-sigma modulator. equation 4-1: figure 4-1: clock sub-circuitry. 4.3 dmclk ? digital master clock this is the clock frequency that is present on the digital portion of the device, after prescaling and division by four ( equation 4-2 ). this is also the sampling frequency, which is the rate at which the modulator outputs are refreshed. each period of this clock corresponds to one sample and one modulator output. see figure 4-1 . equation 4-2: 4.4 drclk ? data rate clock this is the output data rate, i.e. the rate at which the adc outputs new data. each new data is signaled by a data ready pulse on the data ready pin. this data rate is dependent on the osr and the prescaler with the formula in equation 4-3 . equation 4-3: table 4-1: mcp3918 oversampling ratio settings config0 analog master clock prescale pre<1:0> 00 amclk = mclk/1 (default) 01 amclk = mclk/2 10 amclk = mclk/4 11 amclk = mclk/8 amclk mclk prescale ------------------------------ - = xtal oscillator mclk osc1 osc2 multiplexer out 0 1 1/prescale 1/4 1/osr amclk dmclk drclk clock divider clock divider clock divider osr<2:0> pre<1:0> clkext multiplexer out 0 1 mode sck dmclk amclk 4 -------------------- - mclk 4 prescale ? --------------------------------------- - == drclk dmclk osr ---------------------- amclk 4osr ? --------------------- mclk 4 osr prescale ? ? ---------------------------------------------------------- - ===
mcp3918 ds20005287a-page 24 ? 2014 microchip technology inc. since this is the output data rate, and because the decimation filter is a sinc (or notch) filter, there is a notch in the filter transfer function at each integer multiple of this rate. table 4-2 describes the various combinations of osr and prescale, and their associated amclk, dmclk and drclk rates. table 4-2: device data rates in function of mclk, osr and prescale, mclk = 4 mhz pre<1:0> osr<2:0> osr amclk dmclk drclk drclk (ksps) sinad (db) note 1 enob from sinad (bits) note 1 11111 4096 mclk/8 mclk/32 mclk/131072 0.035 102.5 16.7 11110 2048 mclk/8 mclk/32 mclk/65536 0.061 100 16.3 11101 1024 mclk/8 mclk/32 mclk/32768 0.122 97 15.8 11100 512 mclk/8 mclk/32 mclk/16384 0.244 96 15.6 11011 256 mclk/8 mclk/32 mclk/8192 0.488 95 15.5 11010 128 mclk/8 mclk/32 mclk/4096 0.976 90 14.7 11001 64 mclk/8 mclk/32 mclk/2048 1.95 83 13.5 11000 32 mclk/8 mclk/32 mclk/1024 3.9 70 11.3 10111 4096 mclk/4 mclk/16 mclk/65536 0.061 102.5 16.7 10110 2048 mclk/4 mclk/16 mclk/32768 0.122 100 16.3 10101 1024 mclk/4 mclk/16 mclk/16384 0.244 97 15.8 10100 512 mclk/4 mclk/16 mclk/8192 0.488 96 15.6 10011 256 mclk/4 mclk/16 mclk/4096 0.976 95 15.5 10010 128 mclk/4 mclk/16 mclk/2048 1.95 90 14.7 10001 64 mclk/4 mclk/16 mclk/1024 3.9 83 13.5 10000 32 mclk/4 mclk/16 mclk/512 7.8125 70 11.3 01111 4096 mclk/2 mclk/8 mclk/32768 0.122 102.5 16.7 01110 2048 mclk/2 mclk/8 mclk/16384 0.244 100 16.3 01101 1024 mclk/2 mclk/8 mclk/8192 0.488 97 15.8 01100 512 mclk/2 mclk/8 mclk/4096 0.976 96 15.6 01011 256 mclk/2 mclk/8 mclk/2048 1.95 95 15.5 01010 128 mclk/2 mclk/8 mclk/1024 3.9 90 14.7 01001 64 mclk/2 mclk/8 mclk/512 7.8125 83 13.5 01000 32 mclk/2 mclk/8 mclk/256 15.625 70 11.3 00111 4096 mclk mclk/4 mclk/16384 0.244 102.5 16.7 00110 2048 mclk mclk/4 mclk/8192 0.488 100 16.3 00101 1024 mclk mclk/4 mclk/4096 0.976 97 15.8 00100 512 mclk mclk/4 mclk/2048 1.95 96 15.6 00011 256 mclk mclk/4 mclk/1024 3.9 95 15.5 00010 128 mclk mclk/4 mclk/512 7.8125 90 14.7 00001 64 mclk mclk/4 mclk/256 15.625 83 13.5 00000 32 mclk mclk/4 mclk/128 31.25 70 11.3 note 1: for osr = 32 and 64, dither = none. for osr = 128 and higher, dither = maximum. the sinad values are given for gain = 1.
? 2014 microchip technology inc. ds20005287a-page 25 mcp3918 4.5 osr ? oversampling ratio this is the ratio of the sampling frequency to the output data rate: osr = dmclk/drclk. the default osr is 256, with mclk = 4 mhz, prescale = 1, amclk = 4 mhz, f s = 1 mhz, and f d = 3.90625 ksps. the bits in tab l e 4 - 3 , available in the config0 register, are used to change the oversampling ratio (osr). 4.6 offset error this is the error induced by the adc when the inputs are shorted together (v in = 0v). the specification incorporates both pga and adc offset contributions. this error varies with pga and osr settings. the offset is different on each channel and varies from chip to chip. the offset is specified in v. the offset error can be digitally compensated independently on each channel through the offcal_ch0 register with a 24-bit calibration word. the offset on the mcp3918 has a low temperature coefficient. 4.7 gain error this is the error induced by the adc on the slope of the transfer function. it is the deviation expressed in %, compared to the ideal transfer function defined in equation 5-3 . the specification incorporates both pga and adc gain error contributions, but not the v ref contribution (it is measured with an external v ref ). this error varies with pga and osr settings. the gain error can be digitally compensated independently on each channel through the gaincal_ch0 register with a 24-bit calibration word. the gain error on the mcp3918 has a low temperature coefficient. 4.8 integral non-linearity error integral non-linearity error is the maximum deviation of an adc transition point from the corresponding point of an ideal transfer function, with the offset and gain errors removed, or with the end points equal to zero. it is the maximum remaining error after calibration of offset and gain errors for a dc input signal. 4.9 signal-to-noise ratio (snr) for the mcp3918 adc, the signal-to-noise ratio is a ratio of the output fundamental signal power to noise power (not including the harmonics of the signal), when the input is a sine wave at a predetermined frequency (see equation 4-4 ). it is measured in db. usually, only the maximum signal-to-noise ratio is specified. the snr figure depends mainly on the osr and dither settings of the device. equation 4-4: signal-to-noise ratio 4.10 signal-to-noise and distortion ratio (sinad) the most important figure of merit for the analog performance of the adc present on the mcp3918 is the signal-to-noise and distortion (sinad) specification. the signal-to-noise and distortion ratio is similar to signal-to-noise ratio, with the exception that you must include the harmonics power in the noise power calculation (see equation 4-5 ). the sinad specification depends mainly on the osr and dither settings. equation 4-5: sinad equation the calculated combination of snr and thd per the following formula also yields sinad (see equation 4- 6 ). equation 4-6: sinad, thd and snr relationship table 4-3: mcp3918 oversampling ratio settings config0 oversampling ratio (osr) osr<2:0> 000 32 001 64 010 128 011 256 (default) 100 512 101 1024 110 2048 111 4096 snr db ?? 10 signalpower noisepower ---------------------------------- ?? ?? log = sinad db ?? 10 signalpower noise harmonicspower + -------------------------------------------------------------------- - ?? ?? log = sinad db ?? 10 10 snr 10 ----------- ?? ?? 10 thd ? 10 --------------- - ?? ?? + log =
mcp3918 ds20005287a-page 26 ? 2014 microchip technology inc. 4.11 total harmonic distortion (thd) the total harmonic distortion is the ratio of the output harmonics power to the fundamental signal power for a sine wave input, and is defined in equation 4-7 . equation 4-7: the thd calculation includes the first 35 harmonics for the mcp3918 specifications. the thd is usually only measured with respect to the first ten harmonics. thd is sometimes expressed as percentage. equation 4-8 converts the thd in percentage. equation 4-8: this specification depends mainly on the dither setting. 4.12 spurious-free dynamic range (sfdr) sfdr is the ratio between the output power of the fundamental and the highest spur in the frequency spectrum (see equation 4-9 ). the spur frequency is not necessarily a harmonic of the fundamental, even though this is usually the case. this figure represents the dynamic range of the adc when a full-scale signal is used at the input. this specification depends mainly on the dither setting. equation 4-9: 4.13 mcp3918 delta-sigma architecture the mcp3918 incorporates one delta-sigma adc with a multi-bit architecture. a delta-sigma adc is an oversampling converter that incorporates a built-in modulator, which digitizes the quantity of charges integrated by the modulator loop (see figure 5-1 ). the quantizer is the block that performs the analog-to-digital conversion. the quantizer is typically 1-bit, or a simple comparator, which helps maintain the linearity performance of the adc (the dac structure is, in this case, inherently linear). multi-bit quantizers help lower the quantization error (the error fed back in the loop can be very large with 1-bit quantizers) without changing the order of the modulator or the osr, which leads to better snr figures. however, typically, the linearity of such architectures is more difficult to achieve since the dac linearity is as difficult to attain, and its linearity limits the thd of such adc. the 5-level quantizer present in mcp3918 is a flash adc composed of four comparators arranged with equally spaced thresholds and a thermometer coding. for improved thd figures, the mcp3918 also includes proprietary 5-level dac architecture that is inherently linear. 4.14 idle tones a delta-sigma converter is an integrating converter. it also has a finite quantization step (lsb) which can be detected by its quantizer. a dc input voltage that is below the quantization step should only provide an all zeros result, since the input is not large enough to be detected. as an integrating device, any delta-sigma adc will show idle tones. this means that the output will have spurs in the frequency content that depend on the ratio between the quantization step voltage and the input voltage. these spurs are the result of the integrated sub-quantization step inputs that will eventually cross the quantization steps after a long enough integration. this will induce an ac frequency at the output of the adc, and can be shown in the adc output spectrum. these idle tones are residues that are inherent to the quantization process and to the fact that the converter is integrating at all times without being reset. they are residues of the finite resolution of the conversion process. they are very difficult to attenuate and they are heavily signal-dependent. they can degrade the sfdr and thd of the converter, even for dc inputs. they can be localized in the baseband of the converter and are thus difficult to filter from the actual input signal. for power metering applications, idle tones can be very disturbing, because energy can be detected even at the 50 or 60 hz frequency, depending on the dc offset of the adc, while no power is really present at the inputs. the only practical way to suppress or attenuate the idle tones phenomenon is to apply dithering to the adc. the amplitudes of the idle tones are a function of the order of the modulator, the osr and the number of levels in the quantizer of the modulator. a higher order, a higher osr, or a higher number of levels for the quantizer will attenuate the amplitudes of the idle tones. thd db ?? 10 harmonicspower fundamentalpower ---------------------------------------------------- - ?? ?? log = thd % ?? 100 10 thd db ?? 20 ------------------------ ? = sfdr db ?? 10 fundamentalpower highestspurpower ---------------------------------------------------- - ?? ?? log =
? 2014 microchip technology inc. ds20005287a-page 27 mcp3918 4.15 dithering in order to suppress or attenuate the idle tones present in any delta-sigma adc, dithering can be applied to the adc. dithering is the process of adding an error to the adc feedback loop in order to ?decorrelate? the outputs and ?break? the idle tone?s behavior. usually a random or pseudo-random generator adds an analog or digital error to the feedback loop of the delta-sigma adc in order to ensure that no tonal behavior can happen at its outputs. this error is filtered by the feedback loop and typically has a zero average value, so that the converter?s static transfer function is not disturbed by the dithering process. however, the dithering process slightly increases the noise floor (it adds noise to the part) while reducing its tonal behavior and thus improving sfdr and thd. the dithering process scrambles the idle tones into baseband white noise and ensures that dynamic specs (snr, sinad, thd, sfdr) are less signal-dependent. the mcp3918 incorporates a proprietary dithering algorithm on the adc in order to remove idle tones and improve thd, which is crucial for power metering applications. 4.16 psrr this is the ratio between a change in the power supply voltage and the adc output codes. it measures the influence of the power supply voltage on the adc outputs. the psrr specification can be dc (the power supply takes multiple dc values) or ac (the power supply is a sine wave at a certain frequency with a certain common-mode). in ac, the amplitude of the sine wave represents the change in the power supply. it is defined in equation 4-10 . equation 4-10: where v out is the equivalent input voltage that the output code translates to, with the adc transfer function. in the mcp3918 specification, av dd varies from 2.7v to 3.6v, and for ac psrr a 50/60 hz sine wave centered around 3.0v is chosen, with a maximum amplitude of 300 mv. the psrr specification is measured with av dd =dv dd . 4.17 cmrr cmrr is the ratio between a change in the common-mode input voltage and the adc output codes. it measures the influence of the common-mode input voltage on the adc outputs. the cmrr specification can be dc (the common-mode input voltage takes multiple dc values) or ac (the common-mode input voltage is a sine wave at a certain frequency with a certain common-mode). in ac, the amplitude of the sine wave represents the change in the power supply. it is defined in equation 4- 11 . equation 4-11: where v cm = (ch0+ + ch0-)/2 is the common-mode input voltage and v out is the equivalent input voltage that the output code translates to, with the adc transfer function. in the mcp3918 specification, v cm varies from -1v to +1v. 4.18 adc reset mode adc reset mode (also called soft reset mode) can only be entered in spi mode by setting the reset<0> bit high in the config1 register. this mode is defined as the condition where the converter is active, but its output is forced to 0 . the registers are not affected in this reset mode and retain their state, except for the data registers of the corresponding channel, which are reset to 0 . the adc can immediately output meaningful codes after leaving the reset mode (and after the sinc filter settling time). this mode is both entered and exited through bit settings in config1 register. the configuration registers are not modified by the soft reset mode. while in reset mode, no data ready pulse will be generated by the adc. when the adc exits adc reset mode, any phase delay present before reset was entered will still be present. however, when the adc is in soft reset mode, the input structure is still clocking if mclk is applied in order to properly bias the inputs, so that no leakage current is observed. if mclk is not applied, large analog input leakage currents can be observed for highly negative input voltages (typically below -0.6v referred to a gnd ). psrr db ?? 20 ? v out ? av dd ------------------ - ?? ?? log = cmrr db ?? 20 ? v out ? v cm ----------------- ?? ?? log =
mcp3918 ds20005287a-page 28 ? 2014 microchip technology inc. 4.19 hard reset mode (reset = 0 ) this mode is only available during a por or when the reset pin is pulled low in the spi mode. the reset pin logic-low state places the device in hard reset mode. in this mode, all internal registers are reset to their default state. in the 2-wire interface mode, the reset pin functionality is not available and the user must use a watchdog timer reset to be able to fully reset the part (see section 7.4 ?watchdog timer reset, resetting the part when in 2-wire mode? ). the dc biases for the analog blocks are still active, i.e. the mcp3918 is ready to convert. however, this pin clears all conversion data in the adc. the comparators? outputs of the adc are forced to their reset state ( 0011 ). the sinc filter as well as its double output buffers are all reset. see serial timing for minimum pulse low time in section 1.0 ?electrical characteristics? . during a hard reset, no communication with the part is possible. the digital interface is maintained in a reset state. during this state, the clock mclk can be applied to the part in order to properly bias the input structures of all channels. if not applied, large analog input leakage currents can be observed for highly negative input signals, and, after removing the hard reset state, a certain start-up time is necessary to properly bias the input structure. during this delay, the adc conversions can be inaccurate. 4.20 adc shutdown mode adc shutdown mode is defined as a state where the converters and their biases are off, consuming only leakage current. when the shutdown bit is reset to ? 0 ?, the analog biases will be enabled, as well as the clock and the digital circuitry. the adc will give a data ready after the sinc filter settling time has occurred. however, since the analog biases are not completely settled at the beginning of the conversion, the sampling may not be accurate for about 1 ms (corresponding to the settling time of the biasing under worst-case conditions). in order to ensure accuracy, the data ready pulse within the delay of 1 ms + settling time of the sinc filter should be discarded. the configuration registers are not modified by the shutdown mode. this mode is only available in spi mode through programming the shutdown<1:0> bits in the config1 register. the output data is flushed to all zeros while in adc shutdown mode. while in adc shutdown mode, no data ready pulse will be generated by the adc. when the adc exits adc shutdown mode, any phase delay present before shutdown was entered will still be present. if the adc is in shutdown mode, the clock is not distributed to the input structure or to the digital core for low-power operation. this can potentially cause high analog input leakage currents at the analog inputs if the input voltage is highly negative (typically below -0.6v referred to a gnd ). once the adc is back to normal operation, the clock is automatically distributed again. 4.21 full shutdown mode the lowest power consumption can be achieved when shutdown<0> = 1 , vrefext = clkext = 1 . this mode is called full shutdown mode, and no analog circuitry is enabled. in this mode, both av dd and dv dd por monitoring are also disabled, and no clock is propagated throughout the chip. the adc is in shutdown mode, and the internal voltage reference is disabled. this mode can only be entered during spi mode. the clock is no longer distributed to the input structure either. this can potentially cause high analog input leakage currents at the analog inputs, if the input voltage is highly negative (typically below -0.6v referred to a gnd ). the only circuit that remains active is the spi interface, but this circuit does not induce any static power consumption. if sck is idle, the only current consumption comes from the leakage currents induced by the transistors and is less than 5 a on each power supply. this mode can be used to power down the chip completely and to avoid power consumption when there is no data to convert at the analog inputs. any sck or mclk edge occurring while in this mode will induce dynamic power consumption. once any of the shutdown, clkext and vrefext bits returns to ? 0 ?, the two por monitoring blocks are operational, and av dd and dv dd monitoring can take place.
? 2014 microchip technology inc. ds20005287a-page 29 mcp3918 4.22 measurement error the measurement error specification is typically used in power metering applications. this specification is a measurement of the linearity of the active energy of a given power meter across its dynamic range. for this measurement, the goal is to measure the active energy of one phase when the voltage root mean square (rms) value is fixed, and the current rms value is sweeping across the dynamic range specified by the meter. the measurement error is the non-linearity error of the energy power across the current dynamic range. it is expressed in percent (%). equation 4-12 shows the formula that calculates the measurement error: equation 4-12: in the present device, the calculation of the active energy is done externally, as a post-processing step that typically happens in the microcontroller, considering, for example, one adc as current channel and the other mcp3918 adc as voltage channel. the voltage channel is fed with a full-scale sine wave at 600 mv peak and is configured with gain = 1 and dither = maximum. to obtain the active energy measurement error graphs, the current channel is fed with sine waves with amplitudes that vary from 600 mv peak to 60 v peak, representing a 10,000:1 dynamic range. the offset is removed on both current and voltage channels, and the channels are multiplied together to give instantaneous power. the active energy is calculated by multiplying the current and voltage channel, and averaging the results of this power during 20 seconds, to extract the active energy. the sampling frequency is chosen as a multiple integer of line frequency (coherent sampling). therefore, the calculation does not take into account any residue coming from bad synchronization. the measurement error is a function of i rms , varies with the osr, averaging time, mclk frequency and is tightly coupled with the noise and linearity specifications. the measurement error is a function of the linearity and thd of the adc, while the standard deviation of the measurement error is a function of the noise specification of the adc. overall, the low thd specification enables low measurement error on a very large dynamic range (e.g. 10,000:1). a low noise and high snr specification enables the decrease of the measurement time and, therefore, of the calibration time, to obtain a reliable measurement error specification. figure 2-5 shows the typical measurement error curves obtained with the samples acquired by the mcp3918, using the default settings with 1-point and 2-point calibration. these calibrations are detailed in section 8.6 ?energy measurement error consider- ations? . measurement error i rms ?? measured active energy active energy present at inputs ? active energy present at inputs ------------------------------------------------------------------------------------------------------------------------------- ------------- 1 0 0 % ? =
mcp3918 ds20005287a-page 30 ? 2014 microchip technology inc. notes:
? 2014 microchip technology inc. ds20005287a-page 31 mcp3918 5.0 device overview 5.1 analog inputs (ch0+/-) the mcp3918 analog inputs can be connected directly to current and voltage transducers (such as shunts, current transformers or rogowski coils). each input pin is protected by specialized esd structures that allow bipolar 2v continuous voltage, with respect to a gnd , to be present at their inputs without the risk of perma- nent damage. the adc has fully differential voltage inputs for better noise performance. the absolute voltage at each pin relative to a gnd should be maintained in the 1v range during operation in order to ensure the specified adc accuracy. the common mode signals should be adapted to respect both the previous conditions and the differential input voltage range. for best performance, the common mode signals should be maintained to a gnd . 5.2 programmable gain amplifiers (pga) the programmable gain amplifier (pga) resides at the front-end of the delta-sigma adc. it has two functions: translate the common-mode voltage of the input from a gnd to an internal level between a gnd and av dd , and amplify the input differential signal. the translation of the common-mode voltage does not change the differential signal, but recenters the common mode so that the input signal can be properly amplified. the pga block can be used to amplify very low signals, but the differential input range of the delta-sigma modulator must not be exceeded. the pga of the adc is controlled by the pga_ch0<2:0> bits in the gain register. tab l e 5 - 1 displays the gain settings for the pga. 5.3 delta-sigma modulator 5.3.1 architecture the adc includes a proprietary second-order modulator with a multi-bit 5-level dac architecture (see figure 5-1 ). the quantizer is a flash adc composed of four comparators with equally spaced thresholds and a thermometer output coding. the proprietary five-level architecture ensures minimum quantization noise at the outputs of the modulators without disturbing linearity or inducing additional distortion. the sampling frequency is dmclk (typically 1 mhz with mclk = 4 mhz) so the modulators are refreshed at a dmclk rate. figure 5-1 represents a simplified block diagram of the delta-sigma adc present on mcp3918. figure 5-1: simplified delta-sigma adc block diagram. note: if the analog inputs are held to a potential of -0.6 to -1v for extended periods of time, mclk must be present inside the device in order to avoid large leakage currents at the analog inputs. this is true even during hard reset mode or during the soft reset of the adc. however, during the shutdown mode of the adc or during the por state, the clock is not distributed inside the circuit. during these states, it is recommended to keep the analog input voltages above -0.6v referred to a gnd in order to avoid high analog inputs leakage currents. table 5-1: pga configuration setting gain pga_ch0<2:0> gain (v/v) gain (db) v in range (v) 000 100.6 001 260.3 010 4120.15 011 8180.075 100 16 24 0.0375 101 32 30 0.01875 note: the two undefined settings are g = 1. this table is defined with v ref =1.2v. second- order integrator loop filter quantizer dac differential voltage input output bit stream 5-level flash adc mcp3918 delta-sigma modulator
mcp3918 ds20005287a-page 32 ? 2014 microchip technology inc. 5.3.2 modulator input range and saturation point for a specified voltage reference value of 1.2v, the modulator specified differential input range is 600 mv. the input range is proportional to v ref and scales according to the v ref voltage. this range ensures the stability of the modulator over amplitude and frequency. outside this range, the modulator is still functional; however, its stability is no longer ensured and therefore it is not recommended to exceed this limit. the saturation point for the modulator is v ref /1.5, since the transfer function of the adc includes a gain of 1.5 by default (independent from the pga setting). see section 5.5 ?adc output coding? . 5.3.3 boost settings the delta-sigma modulator includes a programmable biasing circuit, in order to further adjust the power consumption to the sampling speed applied through the mclk. this can be programmed through the boost<1:0> bits, which are applied to all channels simultaneously. the maximum achievable analog master clock speed (amclk), the maximum sampling frequency (dmclk) and the maximum achievable data rate (drclk) highly depend on the boost<1:0> and pga_ch0<2:0> settings. table 5-2 specifies the maximum amclk possible to keep optimal accuracy with respect to the boost<1:0> and pga_ch0<2:0> settings. table 5-2: maximum amclk limits as a function of boost and pga gain conditions v dd = 3.0v to 3.6v, t a from -40c to +125c v dd = 2.7v to 3.6v, t a from -40c to +125c boost gain maximum amclk (mhz) (sinad within -3 db from its maximum) maximum amclk (mhz) (sinad within -5 db from its maximum) maximum amclk (mhz) (sinad within -3 db from its maximum) maximum amclk (mhz) (sinad within -5 db from its maximum) 0.5x 1 4 4 4 4 0.66x 1 6.4 7.3 6.4 7.3 1x 1 11.4 11.4 10.6 10.6 2x 1 16 16 16 16 0.5x 2 4 4 4 4 0.66x 2 6.4 7.3 6.4 7.3 1x 2 11.4 11.4 10.6 10.6 2x 2 16 16 13.3 14.5 0.5x 4 2.9 2.9 2.9 2.9 0.66x 4 6.4 6.4 6.4 6.4 1x 4 10.7 10.7 9.4 10.7 2x 4 16 16 16 16 0.5x 8 2.9 4 2.9 4 0.66x 8 7.3 8 6.4 7.3 1x 8 11.4 12.3 8 8.9 2x 8 16 16 10 11.4 0.5x 16 2.9 2.9 2.9 2.9 0.66x 16 6.4 7.3 6.4 7.3 1x 16 11.4 11.4 9.4 10.6 2x 16 13.3 16 8.9 11.4 0.5x 32 2.9 2.9 2.9 2.9 0.66x 32 7.3 7.3 7.3 7.3 1x 32 10.6 12.3 9.4 10,6 2x 32 13.3 16 10 11.4
? 2014 microchip technology inc. ds20005287a-page 33 mcp3918 5.3.4 dither settings the modulator includes a dithering algorithm that can be enabled through the dither<1:0> bits in the config0 register. this dithering process improves thd and sfdr (for high osr settings), while slightly increasing the noise floor of the adc. for power metering applications and applications that are distortion-sensitive, it is recommended to keep dither at maximum settings for best thd and sfdr performance. in the case of power metering applications, thd and sfdr are critical specifications. optimizing snr (noise floor) is not problematic due to the large averaging factor at the output of the adc. therefore, even for low osr settings, the dithering algorithm will show a positive impact on the performance of the application. 5.3.5 modulator output block if the user wishes to use the modulator output of the device, the en_mdat bit in the statuscom register must be set to enable. when the en_mdat bit is enabled, the modulator output is present at the mdat0 output pin as soon as the command is placed. additionally, the corresponding sinc filter is disabled in order to consume less current. the corresponding data ready pulse is not present either at the dr output pin. when the en_mdat bit is cleared, the sinc filter is back to normal operation and the mdat0 output is high-impedance. the data ready output pin is then placed in high-impedance regardless of the dr_hiz setting, so that the user can tie this pin to an external supply or ground for lower noise behavior. since the delta-sigma modulator has a five-level output given by the state of the four comparators with thermometer coding, its output can be represented on four bits, each bit giving the state of the corresponding comparator (see ta bl e 5 - 3 ). these bits are present in the mod register and are updated at the dmclk rate. in order to output the result of the comparator on a separate pin (mdat0), this comparator output bit has been arranged to be serially output at the amclk rate (see figure 5-2 ). this 1-bit serial bit stream is the same that would be produced by a 1-bit dac modulator with a sampling frequency of amclk. the modulator can either be considered as a five-level output at dmclk rate or a 1-bit output at amclk rate. these two representations are interchangeable. the mdat0 output can therefore be used in any application that requires 1-bit modulator outputs. such applications will often integrate and filter the 1-bit output with sinc or more complex decimation filters computed by a mcu or a dsp. figure 5-2: mdat0 serial output with respect to the modulator output code. since the reset and shutdown spi commands are asynchronous, the mdat0 pin is resynchronized with dmclk after each time the part goes out of reset and shutdown. this means that, after a soft reset or a shutdown, the first output of mdat0 is always 0011 after the first dmclk rising edge. the mdat0 output pin is high-impedance if the reset pin is low and in 2-wire interface mode. table 5-3: delta-sigma modulator coding comp<3:0> code modulator output code mdat serial stream 1111 +2 1111 0111 +1 0111 0011 0 0011 0001 -1 0001 0000 -2 0000 dmclk mdat+2 mdat+1 mdat+0 mdat-1 mdat-2 comp amclk <3> comp <2> comp <1> comp <0>
mcp3918 ds20005287a-page 34 ? 2014 microchip technology inc. 5.4 sinc 3 + sinc 1 filter the decimation filter present in the mcp3918 is a cascade of two sinc filters (sinc 3 +sinc 1 ): a third-order sinc filter with a decimation ratio of osr 3 , followed by a first-order sinc filter with a decimation ratio of osr 1 (moving average of osr 1 values). figure 5-3 represents the decimation filter architecture. figure 5-3: mcp3918 decimation filter block diagram. equation 5-1 calculates the filter z-domain transfer function. equation 5-1: sinc filter transfer function equation 5-2 calculates the settling time of the adc as a function of dmclk periods. equation 5-2: the sinc 1 filter following the sinc 3 filter is only enabled for the high osr settings. this sinc 1 filter provides additional rejection at a low cost with little modification to the -3 db bandwidth. the resolution (number of significant bits) of the digital filter is 24-bit maximum for any osr and data format choice. the resolution depends only on the osr<2:0> settings in the config0 register per tab le 5 - 4 . once the osr is chosen, the resolution is fixed and the output code respects the data format defined by the width_data<1:0> setting in the statuscom register (see section 5.5 ?adc output coding? ). the gain of the transfer function of this filter is 1 at each multiple of dmclk (typically 1 mhz), so a proper anti- aliasing filter must be placed at the inputs. this will attenuate the frequency content around dmclk and keep the desired accuracy over the baseband of the converter. this anti-aliasing filter can be a simple, first-order rc network, with a sufficiently low time constant to generate high rejection at the dmclk frequency . any unsettled data is automatically discarded to avoid data corruption. each data ready pulse corresponds to fully settled data at the output of the decimation filter. the first data available at the output of the decimation filter is present after the complete settling time of the filter (see tab l e 5 - 4 ). after the first data has been processed, the delay between two data ready pulses is one drclk period. the data stream from input to output is delayed by an amount equal to the settling time of the filter (which is the group delay of the filter). the resolution achievable, the -3 db bandwidth and the settling time at the output of the decimation filter (the output of the adc) are dependent on the osr of each sinc filter and are summarized in ta b l e 5 - 4 . modulator output sinc 3 sinc 1 decimation filter output osr 3 osr 1 4 16 (width = 0) 24 (width = 1) decimation filter osr 1 = 1 hz ?? 1z - osr 3 ? ?? ?? 3 osr 3 1z 1 ? ? ?? ?? 3 --------------------------------------------- - 1z - osr 1 osr 3 ? ? ?? ?? osr 1 1z - osr 3 ? ?? ?? ? -------------------------------------------------------- - ? = where z exp 2 ? jf in ?? ?? dmclk ?? ? ?? = settlingtime dmclkperiods ?? 3osr 3 ? osr 1 1 ? ?? osr 3 ? + =
? 2014 microchip technology inc. ds20005287a-page 35 mcp3918 figure 5-4: sinc filter frequency response, osr = 256, mclk = 4 mhz, pre<1:0> = 00 . figure 5-5: sinc filter frequency response, osr = 4096 (in pink), osr = 512 (in blue), mclk = 4 mhz, pre<1:0> = 00 . 5.5 adc output coding the second-order modulator, sinc 3 +sinc 1 filter, pga, v ref and the analog input structure all work together to produce the device transfer function for the analog-to-digital conversion (see equation 5-3 ). the output data is calculated on 24-bit (23-bit plus sign) and coded in two's complement format, msb first. the output format can then be modified by the width_data<1:0> settings in the statuscom register to allow 16-, 24- or 32-bit formats compatibility (see section 9.5 ?statuscom register - status and communication register? for more information). in case of positive saturation (ch0+ ? ch0- >v ref /1.5), the output code is locked to 7fffff for 24-bit mode. in case of negative saturation (ch0+ - ch0- < -v ref /1.5), the output code is locked to 800000 for 24-bit mode. equation 5-3 is only true for dc inputs. for ac inputs, this transfer function needs to be multiplied by the transfer function of the sinc 3 +sinc 1 filter (see equations 5-1 and 5-3 ). equation 5-3: for data formats other than the default 24-bit format, equation 5-3 should be multiplied by a scaling factor, depending on the data format used (defined by width_data<1:0>). the data format and the associated scaling factors are given in figure 5-6 . table 5-4: oversampling ratio and sinc filter settling time osr<2:0> osr 3 osr 1 total osr resolution in bits (no missing code) settling time -3 db bandwidth 000 32 1 32 17 96/dmclk 0.26*drclk 001 64 1 64 20 192/dmclk 0.26*drclk 010 128 1 128 23 384/dmclk 0.26*drclk 011 256 1 256 24 768/dmclk 0.26*drclk 100 512 1 512 24 1536/dmclk 0.26*drclk 101 512 2 1024 24 2048/dmclk 0.37*drclk 110 512 4 2048 24 3072/dmclk 0.42*drclk 111 512 8 4096 24 5120/dmclk 0.43*drclk -80 -60 -40 -20 0 a gnitude (db) -120 -100 1 10 100 1000 10000 100000 m a input frequency (hz) -100 -80 -60 -40 -20 0 gnitude (db) -160 -140 -120 1 100 10000 1000000 ma input frequency (hz) for 24-bit mode, width_data<1:0> = 01 (default) data_ch0 ch n+ ch n- ? v ref+ v ref- ? ------------------------------------- ?? ?? 8388608 ?? g ? 1.5 ? ? =
mcp3918 ds20005287a-page 36 ? 2014 microchip technology inc. figure 5-6: output data formats. the adc resolution is a function of the osr ( section 5.4 ?sinc 3 + sinc 1 filter? ). the resolution is the same for all channels. no matter what the resolution is, the adc output data is always calculated in 24-bit words, with added zeros at the end if the osr is not large enough to produce 24-bit resolution (left justification). data <7> width_data<1:0> = 11 32-bit with sign extension data <23> data <23:16> 31 0 data <15:8> data <7:0> width_data<1:0> = 10 32-bit with zeros padded 0x00 31 0 data <23:16> data <7:0> data <15:8> width_data<1:0> = 01 24-bit data <23:16> data <15:8> data <7:0> 23 0 width_data<1:0> = 00 16-bit data <15:8> 15 0 data <23:16> rounded unformatted adc data data <23:16> data <15:8> data <7:0> 23 0 x1/256 x1 x256 x1 scaling factor table 5-5: osr = 256 (and higher) output code examples adc output code (msb first) hexadecimal decimal, 24-bit resolution 0111 1111 1111 1111 1111 1111 0x7fffff + 8,388,607 0111 1111 1111 1111 1111 1110 0x7ffffe + 8,388,606 0000 0000 0000 0000 0000 0000 0x000000 0 1111 1111 1111 1111 1111 1111 0xffffff -1 1000 0000 0000 0000 0000 0001 0x800001 - 8,388,607 1000 0000 0000 0000 0000 0000 0x800000 - 8,388,608 table 5-6: osr = 128 output code examples adc output code (msb first) hexadecimal decimal, 23-bit resolution 0111 1111 1111 1111 1111 111 0 0x7ffffe + 4,194,303 0111 1111 1111 1110 1111 110 0 0x7ffffc + 4,194,302 0000 0000 0000 0000 0000 000 0 0x000000 0 1111 1111 1111 1111 1111 111 0 0xfffffe -1 1000 0000 0000 0000 0000 001 0 0x800002 - 4,194,303 1000 0000 0000 0000 0000 000 0 0x800000 - 4,194,304 table 5-7: osr = 64 output code examples adc output code (msb first) hexadecimal decimal, 20-bit resolution 0111 1111 1111 1111 1111 0 0 0 0 0x7ffff0 + 524, 287 0111 1111 1111 1111 1110 0 0 0 0 0x7fffe0 + 524, 286 0000 0000 0000 0000 0000 0 0 0 0 0x000000 0 1111 1111 1111 1111 1111 0 0 0 0 0xfffff0 -1 1000 0000 0000 0000 0001 0 0 0 0 0x800010 - 524,287 1000 0000 0000 0000 0000 0 0 0 0 0x800000 - 524, 288
? 2014 microchip technology inc. ds20005287a-page 37 mcp3918 5.6 voltage reference 5.6.1 internal voltage reference the mcp3918 contains an internal voltage reference source specially designed to minimize drift over temperature. in order to enable the internal voltage reference, the vrefext bit in the config1 register must be set to ? 0 ? (default mode). this internal v ref supplies reference voltage to all channels. the typical value of this voltage reference is 1.2v 2%. the internal reference has a very low typical temperature coefficient of 7 ppm/c, allowing the output to have minimal variation, with respect to temperature, since they are proportional to (1/v ref ). the noise of the internal voltage reference is low enough not to significantly degrade the snr of the adc, if compared to a precision external low-noise voltage reference. the output pin for the internal voltage reference is refin+/out. if the voltage reference is only used as an internal v ref , adding bypass capacitance on refin+/out is not necessary for keeping adc accuracy, but a minimal 0.1 f ceramic capacitance can be connected to avoid emi/emc susceptibility issues due to the antenna created by the refin+/out pin, if left floating. the bypass capacitors also help in applications where the voltage reference output is connected to other circuits. in this case, additional buffering may be needed, since the output drive capability of this output is low. adding too much capacitance on the refin+/out pin may slightly degrade the thd performance of the adc. 5.6.2 differential external voltage inputs when the vrefext bit is set to ? 1 ?, the two reference pins (refin+/out, refin-) become a differential voltage reference input. the voltage at the refin+/out is noted v ref +, and the voltage at the refin- pin is noted v ref -. the differential voltage input value is given by equation 5-4 . equation 5-4: the specified v ref ranges from 1.1v to 1.3v. the refin- pin voltage (v ref -) should be limited to 0.1v, with respect to a gnd . typically, for single-ended reference applications, the refin- pin should be directly connected to a gnd , with its own separate track to avoid any spike due to switching noise. 5.6.3 temperature compensation (vrefcal<7:0>) the internal voltage reference consists of a proprietary circuit and algorithm to compensate for first-order and second-order temperature coefficients. the compensation enables very low temperature coefficients (typically 9 ppm/c) on the entire range of temperatures, from - 40c to +125c. this temperature coefficient varies from part to part. this temperature coefficient can be adjusted on each part through the vrefcal<7:0> bits present in the config0 register (bits 7 to 0). these register settings are only for advanced users. the vrefcal<7:0> bits should not be modified unless the user wants to calibrate the temperature coefficient of the whole system or application. the default value of this register is set to 0x50. the default value (0x50) was chosen to optimize the standard deviation of the tempco across process variation. the value can be slightly improved to around 7 ppm/c if the vrefcal<7:0> bits are written at 0x42, but this setting degrades the standard deviation of the vref tempco.the typical variation of the temperature coefficient of the internal voltage reference with respect to the vrefcal register code is given by figure 5-6 . modifying the value stored in the vrefcal<7:0> bits may also vary the voltage reference, in addition to the temperature coefficient. table 5-8: osr = 32 output code examples adc output code (msb first) hexadecimal decimal, 17-bit resolution 0111 1111 1111 1111 1 0 0 0 0 0 0 0 0x7fff80 + 65, 535 0111 1111 1111 1111 0 0 0 0 0 0 0 0 0x7fff00 + 65, 534 0000 0000 0000 0000 0 0 0 0 0 0 0 0 0x000000 0 1111 1111 1111 1111 1 0 0 0 0 0 0 0 0xffff80 -1 1000 0000 0000 0000 1 0 0 0 0 0 0 0 0x800080 - 65,535 1000 0000 0000 0000 0 0 0 0 0 0 0 0 0x800000 - 65, 536 v ref =v ref +?v ref -
mcp3918 ds20005287a-page 38 ? 2014 microchip technology inc. figure 5-7: v ref tempco vs. v refcal trim code chart. 5.6.4 voltage reference buffer the mcp3918 adc includes a voltage reference buffer tied to the refin+/out pin, which allows the device to properly charge the internal capacitors with the voltage reference signals, even in the case of an external voltage reference connection with weak load regulation specifications. this ensures that the correct amount of current is sourced to each channel to guarantee their accuracy specifications, and diminishes the constraints on the voltage reference load regulation. 5.7 power-on reset the mcp3918 contains an internal por circuit that monitors both analog and digital supply voltages during operation. the typical threshold for a power-up event detection is 2.0v 5% and a typical start-up time (t por ) of 50 s. the por circuit has a built-in hysteresis for improved transient spike immunity that has a typical value of 200 mv. proper decoupling capacitors (0.1 f ceramic and 10 f) should be mounted as close as possible to the av dd and dv dd pins, providing additional transient immunity. figure 5-8 illustrates the different conditions at a power-up and a power-down event under typical conditions. all internal dc biases are settled at least 1 ms after system por, under worst-case conditions. in order to ensure proper accuracy, any data ready pulse occurring within 1 ms plus the sinc filter settling time after system reset should be ignored. after por, data ready pulses are present at the pin with all the default conditions in the configuration registers. both av dd and dv dd are monitored, so either power supply can sequence first. figure 5-8: power-on reset operation. 0 10 20 30 40 50 60 0 64 128 192 256 v ref drift (ppm) v refcal register trim code (decimal) por state power-up normal por state biases are unsettled. conversions started here may not be accurate. biases are settled. conversions started here are accurate. analog biases settling time sinc filter settling time voltage time por threshold up (2.0v typical) (1.8v typical) t por operation analog biases settling time sinc filter settling time (av dd , dv dd ) any data ready pulse occurring during this time can yield inaccurate output data. it is recommended to discard them.
? 2014 microchip technology inc. ds20005287a-page 39 mcp3918 5.8 hard reset effect on delta-sigma modulator/sinc filter in spi mode, when the reset pin is logic low, the adc will be in reset and the output code is 0x0000h. the reset pin performs a hard reset (dc biases are still on, part is ready to convert) and clears all charges contained in the delta-sigma modulator. the comparator?s output is ? 0011 ? for the adc. the sinc filter is reset, as well as its double output buffers. this pin is independent of the serial interface. it brings all the registers to the default state. when reset is logic low, any write with the spi interface will be disabled and will have no effect. all output pins (sdo, dr ) are high-impedance. if mclk is applied, the input structure is enabled and is properly biasing the substrate of the input transistors. in this case, the leakage current on the analog inputs is low if the analog input voltages are kept between -1v and +1v. if mclk is not applied when in reset mode, the leakage can be high if the analog inputs are below -0.6v, as referred to a gnd . 5.9 phase delay block the mcp3918 incorporates a phase delay generator which ensures the adc (ch0) converts the inputs after a fixed delay, as determined by the phase register setting. the phase register contains a 12-bit bank that represents group delay of the adc channel (in addition to the settling time of the sinc filter) expressed in dmclk periods with an offset of osr/2 periods. it is coded with a 11-bit plus sign, msb-first two's complement code. this code indicates how many dmclk periods are induced as a delay (see equation 5-5 ). equation 5-5: the timing resolution of the phase delay is 1/dmclk or 1 s in the default configuration with mclk = 4 mhz. given the definition of dmclk, the phase delay is affected by a change in the prescaler settings (pre<1:0>) and the mclk frequency. the data ready signal is affected by the phase delay settings. 5.9.1 phase delay limits the limits of the phase delays are determined by the osr settings: the phase delays can only go from 0 to +(osr-1) dmclk periods when taking the last reset as a reference (same definition as mcp391x but not showing an odd channel reference here since there is only one channel). if larger delays are needed, they can be implemented externally to the chip with an mcu. a fifo in the mcu can save incoming data from the adc channel for a number n of drclk clocks. in this case, drclk would represent the coarse timing resolution, and dmclk the fine timing resolution. the total delay will then be equal to: equation 5-6: the phase delay register can be programmed once with the osr = 4096 setting, and will automatically adjust the osr afterwards, without the need to change the value of the phase register. ? osr = 4096: the delay can go from 0 to +4095. phase<11> is the sign bit. phase<10> is the msb and phase<0> the lsb. ? osr = 2048: the delay can go from 0 to +2047. phase<10> is the sign bit. phase<9> is the msb and phase<0> the lsb. ? osr = 1024: the delay can go from 0 to +1023. phase<9> is the sign bit. phase<8> is the msb and phase<0> the lsb. ? osr = 512: the delay can go from 0 to +511 phase<8> is the sign bit. phase<7> is the msb and phase<0> the lsb. ? osr = 256: the delay can go from 0 to +255. phase<7> is the sign bit. phase<6> is the msb and phase<0> the lsb. ? osr = 128: the delay can go from 0 to +127. phase<6> is the sign bit. phase<5> is the msb and phase<0> the lsb. ? osr = 64: the delay can go from 0 to +63. phase<5> is the sign bit. phase<4> is the msb and phase<0> the lsb. ? osr = 32: the delay can go from 0 to +31. phase<4> is the sign bit. phase<3> is the msb and phase<0> the lsb. total delay phase<11:0> decimal code osr 2 ----------- + dmclk ------------------------------------------------------------------------------------------- - = note: rewriting the phase register with the same value automatically resets and restarts the adc. total delay = n/drclk + osr/2/dmclk
mcp3918 ds20005287a-page 40 ? 2014 microchip technology inc. 5.10 data ready status bit in addition to the dr pin indicator, the mcp3918 device includes a separate data ready status bit. the adc channel is associated to the corresponding drstatus bit that can be read at all times in the statuscom register. this status bit can be used to synchronize the data retrieval, in case the dr pin is not connected (see section 6.8 ?adc channel latching and synchronization? ). the drstatus bit is not writable; writing on it has no effect. it has a default value of ' 1 ', which indicates that the data of the corresponding adc is not ready. this means that the adc output register has not been updated since the last reading (or since the last reset). the drstatus bit takes the ' 0 ' state, once the adc channel register is updated (which happens at a drclk rate). a simple read of the statuscom register clears the drstatus bit to its default value (' 1 '). 5.11 crystal oscillator the mcp3918 includes a pierce-type crystal oscillator with very high stability and ensures very low tempco and jitter for the clock generation. this oscillator can handle crystal frequencies up to 20 mhz, provided that proper load capacitances and quartz quality factor are used. the crystal oscillator is enabled when clkext = 0 in the config1 register, therefore it cannot be enabled during the 2-wire interface mode. it is only selectable in the spi mode. for a proper start-up, the load capacitors of the crystal should be connected between osc1 and d gnd and between osc2 and d gnd . they should also respect equation 5-7 . equation 5-7: when clkext = 1 , the crystal oscillator is bypassed by a digital buffer, to allow direct clock input for an external clock (see figure 4-1 ). in this case, osc2 becomes the mode select input pin for the interface mode. when mode = 0 , the digital interface stays in spi mode; when mode = 1 , the digital interface toggles to the 2-wire mode. a pull-down current forces the mode to be logic low (spi mode) by default if the osc2 pin is floating. for proper operation, the external clock should not be higher than 20 mhz before prescaling (mclk < 20 mhz). table 5-9: phase values with mclk = 4 mhz, osr = 4096, pre<1:0> = 00 phase<11:0> hex delay 011111111111 0x7ff 4095 s 011111111110 0x7fe 4094 s 000000000001 0x001 2049 s 000000000000 0x000 2048 s 111111111111 0xfff 2047 s 100000000001 0x801 1 s 100000000000 0x800 0 s note: in addition to the conditions defining the maximum mclk input frequency range, the amclk frequency should be maintained inferior to the maximum limits defined in tab l e 5 - 2 , to ensure the accuracy of the adc. if these limits are exceeded, it is recommended to choose either a larger osr or a larger prescaler value so that amclk can respect these limits. r m 1.6 10 6 ? 1 fc ? load ------------------------ - ?? ?? ? 2 < where: f = crystal frequency in mhz c load = load capacitance in pf, including parasitics from the pcb r m = motional resistance of the quartz, in ohms
? 2014 microchip technology inc. ds20005287a-page 41 mcp3918 5.12 digital system offset and gain errors the mcp3918 incorporates two sets of additional registers to perform system digital offset and gain error calibration, which will modify the output result of the channel, if calibration is enabled. the gain and offset calibrations can be enabled or disabled through two configuration bits (en_offcal and en_gaincal). when both calibrations are enabled, the output of the adc is modified per equation 5-8 . these calibrations are not effective in 2-wire interface mode. equation 5-8: digital offset and gain error calibration registers calculations 5.12.1 digital offset error calibration the offcal_ch0 register is 23-bit plus sign two?s complement registers, whose lsb value is the same as the channel adc data. this register is then added bit by bit to the adc output codes, if the en_offcal bit is enabled. enabling the en_offcal bit does not create a pipeline delay; the offset addition is instantaneous. for low osr values, only the significant digits are added to the output (up to the resolution of the adc; for example, at osr = 32, only the first 17 bits are added). the offset is not added when the corresponding channel is in reset or shutdown mode. the corresponding input voltage offset value added by each lsb in these 24-bit registers is: equation 5-9: this register is a ?don't care? if en_offcal = 0 (offset calibration disabled), but its value is not cleared by the en_offcal bit. 5.12.2 digital gain error calibration this register is a signed 24-bit msb ? first register coded with a range of -1x to +(1 - 2 -23 )x (from 0x800000 to 0x7fffff). the gain calibration adds 1x to this register and multiplies it to the output code of the channel bit by bit, after offset calibration. thus, the gain calibration ranges from 0x to 1.9999999x (from 0x80000 to 0x7fffff). the lsb corresponds to a 2 -23 increment in the multiplier. enabling en_gaincal creates a pipeline delay of 24 dmclk periods on all channels. all data ready pulses are delayed by 24 dmclk periods, starting from data ready pulse following the command enabling en_gaincal bit. the gain calibration is effective on the next data ready pulse following the command enabling en_gaincal bit. the digital gain calibration does not function when the corresponding channel is in reset or shutdown mode. the gain multiplier value for an lsb in this 24-bit register is: equation 5-10: this register is a ?don't care? if en_gaincal = 0 (offset calibration disabled), but its value is not cleared by the en_gaincal bit. the output data is kept to either 7fff or 8000 (16-bit mode) or 7fffff or 800000 (24-bit mode) if the output results are out of bounds after all calibrations are performed. data_ch0 post cal ? ?? data_ch0 pre cal ? ?? offcal_ch0 + ?? 1 gaincal_ch0 + ?? ? = offset(1lsb) = v ref /(pga_chn x 1.5 x 8388608) gain (1lsb) = 1/8388608
mcp3918 ds20005287a-page 42 ? 2014 microchip technology inc. notes:
? 2014 microchip technology inc. ds20005287a-page 43 mcp3918 6.0 spi serial interface description 6.1 overview the mcp3918 device includes a four-wire (cs , sck, sdi, sdo) digital serial interface that is compatible with spi modes 0,0 and 1,1. data is clocked out of the mcp3918 on the falling edge of sck, and data is clocked into the mcp3918 on the rising edge of sck. in these modes, the sck clock can idle either high (1,1) or low (0,0). the digital interface is asynchronous with the mclk clock that controls the adc sampling and digital filtering. all the digital input pins are schmitt-triggered to avoid system noise perturbations on the communications. each independent spi communication starts with a cs falling edge and stops with the cs rising edge. when cs is logic high, sdo is in high-impedance, there are transitions on sck, and sdi has no effect. changing from an spi mode 1,1 to an spi mode 0,0 and vice versa is possible and can be done while the cs pin is logic high. any cs rising edge clears the communication and resets the spi digital interface. additional control pins (reset , dr ) are also provided on separate pins for advanced communication features. the data ready pin (dr ) outputs pulses when a new adc channel data is available for reading, which can be used as an interrupt for an mcu. the master reset pin (reset ) acts like a hard reset and can reset the part to its default power-up configuration (equivalent to a por state). the mcp3918 interface has a simple command structure. every command is either a read command from a register or a write command to a register. the mcp3918 device includes nine registers defined in the register map in table 9-1 . the register map is fully compatible with the mcp391x family to allow easy porting of mcu code from one design to another inside the mcp391x family. the first byte (8-bit wide) transmitted is always the control byte that defines the address of the register and the type of command (read or write). it is followed by the register itself, which can be in a 16-, 24- or 32-bit format, depending on the multiple format settings defined in the statuscom register. the mcp3918 is compatible with multiple formats that help reduce overhead in the data handling for most mcus and processors available on the market (8-, 16- or 32-bit mcus) and improve mcu-code compaction and efficiency. the mcp3918 digital interface is capable of handling various continuous read and write modes, which allow the device to perform adc data streaming or full register map writing within only one communication (and therefore with only one unique control byte). the internal registers can be grouped together with various configurations through the read<1:0> and write bits. the internal address counter of the serial interface can be automatically incremented with no additional control byte needed, in order to loop through the various groups of registers within the register map. the groups are defined in table 9-2 . the mcp3918 device also includes advanced security features to secure each communication, to avoid processing unwanted write commands in order to change the desired configuration, and to alert the user in case of a change in the desired configuration. each spi read communication can be secured through a selectable crc-16 checksum provided on the sdo pin at the end of every communication sequence. this crc-16 computation is compatible with the dma crc hardware of the pic24 and pic32 mcus, resulting in no additional overhead for added security. in order to secure the entire configuration of the device, the mcp3918 includes an 8-bit lock code (lock<7:0>), which blocks all write commands to the full register map if the value of the lock<7:0> is not equal to a defined password (0xa5). the user can protect its configuration by changing the lock<7:0> value to 0x00 after the full programming, so that no unwanted write command will result in a change in the configuration (because lock<7:0> is different from the 0xa5 password). an additional crc-16 calculation is also running continuously in the background to ensure the integrity of the full register map. all writable registers of the register map (except for the mod register) are processed through a crc-16 calculation engine and give a crc-16 checksum that depends on the configuration. this checksum is readable on the lock/crc register and updated at all times. if a change in this checksum occurs, a selectable interrupt can give a flag on the dr pin (the dr pin becomes logic low) to warn the user that the configuration is corrupted.
mcp3918 ds20005287a-page 44 ? 2014 microchip technology inc. 6.2 control byte the control byte of the mcp3918 contains two device address bits (a<6:5>), five register address bits (a<4:0>) and a read/write bit (r/w ). the first byte transmitted to the mcp3918 in any communication is always the control byte. during the control byte transfer, the sdo pin is always in a high-impedance state. the mcp3918 interface is device addressable (through a<6:5>), so that multiple chips can be present on the same spi bus with no data bus contention, even if they use the same cs pin and a provided half-duplex spi interface, with a different address identifier. this functionality enables, for example, a serial eeprom like 24aaxxx/24lcxxx or 24fcxxx. moreover, it enables the mcp3918 to share all the spi pins and to consume less i/o pins in the application processor, since all these serial eeprom circuits use a<6:5> = 00 . figure 6-1: control byte. the default device address bits are a<6:5> = 01 (contact the microchip factory for other available device address bits). for more information, see the product identification system section. the register map is defined in tab l e 9 - 1 . 6.3 reading from the device the first register read on the sdo pin is the one defined by the address (a<4:0>) given in the control byte. after this first register is fully transmitted, if the cs pin is maintained logic low, the communication continues without an additional control byte and the sdo pin transmits another register with the address automatically incremented. four different read mode configurations can be defined through the read<1:0> bits in the statuscom register for the address increment (see section 6.5 ?continuous communications, looping on register sets? and ta b l e 9 - 2 ). the data on sdo is clocked out of the mcp3918 on the falling edge of sck. the reading format for each register is defined in section 5.5 ?adc output coding? . figure 6-2: read on a single register with 24-bit format (width_data<1:0> = 01 , spi mode 1,1). a<6> a<5> a<4> a<3> a<2> a<1> a<0> r/w device address register address read/ write read communication (spi mode 1,1) dont care dont care a<6> data<22> sck sdi sdo a<5> a<4> a<3> a<2> a<1> a<0> cs data<21> data<20> data<19> data<18> data<17> data<16> data<15> data<14> data<13> data<12> data<11> data<10> data<9> data<8> data<7> data<6> data<5> data<4> data<3> data<2> data<1> data<0> hi-z hi-z device latches sdi on rising edge device latches sdo on falling edge r/w data<23> high z high z
? 2014 microchip technology inc. ds20005287a-page 45 mcp3918 figure 6-3: read on a single register with 24-bit format (width_data<1:0> = 01 , spi mode 0,0). 6.4 writing to the device the first register written from the sdi pin to the device is the one defined by the address (a<4:0>) given in the control byte. after this first register is fully transmitted, if the cs pin is maintained logic low, the communication continues without an additional control byte and the sdi pin transmits another register with the address automatically incremented. two different write mode configurations for the address increment can be defined through the write bit in the statuscom register (see section 6.5 ?continuous communications, looping on register sets? and table 9-2 ). the sdo pin stays in a high-impedance state during a write communication. the data on sdi is clocked into the mcp3918 on the rising edge of sck. the writing format for each register is defined in section 5.5 ?adc output coding? . a write on an undefined or non-writable address, such as the adc channel register address, will have no effect nor will it increment the address counter. figure 6-4: write to a single register with 24-bit format (width_crc = 0 , spi mode 1,1). read communication (spi mode 0,0) dont care dont care dont care a<6> data<22> sck sdi sdo a<5> a<4> a<3> a<2> a<1> a<0> r/w cs data<23> data<21> data<20> data<19> data<18> data<17> data<16> data<15> data<14> data<13> data<12> data<11> data<10> data<9> data<8> data<7> data<6> data<5> data<4> data<3> data<2> data<1> data<0> hi-z hi-z device latches sdi on rising edge device latches sdo on falling edge high z high z write communication (spi mode 1,1) dont care a<6> sck sdi sdo a<5> a<4> a<3> a<2> a<1> a<0> cs hi-z device latches sdi on rising edge r/w data<22> data<21> data<20> data<19> data<18> data<17> data<16> data<15> data<14> data<13> data<12> data<11> data<10> data<9> data<8> data<7> data<6> data<5> data<4> data<3> data<2> data<1> data<23> dont care data<0> high z
mcp3918 ds20005287a-page 46 ? 2014 microchip technology inc. figure 6-5: write to a single register with 24-bit format (width_crc = 0 , spi mode 0,0). write communication (spi mode 0,0) dont care a<6> sck sdi sdo a<5> a<4> a<3> a<2> a<1> a<0> r/w cs hi-z device latches sdi on rising edge dont care data<22> data<23> data<21> data<20> data<19> data<18> data<17> data<16> data<15> data<14> data<13> data<12> data<11> data<10> data<9> data<8> data<7> data<6> data<5> data<4> data<3> data<2> data<1> data<0> high z
? 2014 microchip technology inc. ds20005287a-page 47 mcp3918 6.5 continuous communications, looping on register sets the mcp3918 digital interface can process communications in continuous mode, without having to enter an spi command between each read or write to a register. this feature allows the user to reduce communication overhead to the strict minimum, which diminishes emi emissions and reduces switching noise in the system. the registers can be grouped into multiple sets for continuous communications. the grouping of the registers in the different sets is defined by the read<1:0> and write bits that control the internal spi communication address pointer. for a graphical representation of the register map sets in the function of the read<1:0> and write bits, please see table 9-2 . in the case of a continuous communication, there is only one control byte on sdi to start the communication after a cs pin falling edge. the part stays within the same communication loop until the cs pin returns logic high. the spi internal register address pointer starts by transmitting/receiving the address defined in the control byte. after this first transmission/reception, the spi internal register address pointer automatically increments to the next available address in the register set for each transmission/reception. when it reaches the last address in the set, the communication sequence is finished. the address pointer loops automatically back to the first address of the defined set and restarts a new sequence with auto-increment (see tab l e 6 - 6 ). the undefined or unused addresses are automatically jumped by the address pointer (they are not considered to be part of the register map by the address pointer). this internal address pointer automatic selection allows the following functionality: ? read one adc channel data continuously ? continuously read the entire register map ? continuously read or write each separate register ? continuously read or write all configuration registers figure 6-6: continuous communication sequences. continuous read communication (24-bit format) dont care sck sdi sdo cs hi-z 8x control byte 24x addr ... addr + n starts read sequence at address addr complete read sequence addr + 1 24x ... 24x 24x addr ... complete read sequence addr + 1 24x ... 24x addr + n continuous write communication (24-bit format) dont care sck sdi sdo cs hi-z 8x control byte 24x addr ... addr + n starts write sequence at address addr complete write sequence addr + 1 24x ... 24x 24x addr ... complete write sequence addr + 1 24x ... 24x addr + n dont care addr addr + 1 ... addr + n complete read sequence roll-over address set addr addr + 1 ... addr + n complete write sequence roll-over address set high z high z
mcp3918 ds20005287a-page 48 ? 2014 microchip technology inc. 6.5.1 continuous read the statuscom register contains the loop settings for the internal register address pointer (read<1:0> bits and write bit). for the continuous read modes, the address selection can take the four following values: no sdi data coming after the control byte is considered during a continuous read communication. the following figures represent a typical, continuous read communication with the default settings (read<1:0> = 10 , width_data<1:0> = 01 ) for spi mode 0,0 ( figure 6-7 ) and spi mode 1,1 ( figure 6-8 ). in spi mode (1,1), the sdo pin stays in the last state (lsb of previous data) after a complete reading, which also allows seamless continuous read mode (see figure 6-8 ). figure 6-7: typical continuous read communication (width_data<1:0> = 01 , spi mode 0,0). figure 6-8: typical continuous read communication (width_data<1:0> = 01 , spi mode 1,1). table 6-1: address selection in continuous read read<1:0> register address set grouping for continuous read communications 00 static (no incrementation) 01 groups 10 types (default) 11 full register map note: for continuous reading of adc data in spi mode 0,0 (see figure 6-7 ), once the data has been completely read after a data ready pulse, the sdo pin will take the msb value of the previous data at the end of the reading (falling edge of the last sck clock). if sck stays idle at logic low (by definition of mode 0,0), the sdo pin will be updated at the falling edge of the next data ready pulse (synchronously with the d r pin falling edge with an output timing of t dodr ) with the new msb of the data corresponding to the data ready pulse. this mechanism allows the mcp3918 to continuously read adc data outputs seamlessly, even in spi mode (0,0). don?t care sck sdi sdo cs hi-z 8x 0x01 24x starts read sequence at address 00000 24x don?t care dr complete read sequence on new adc output channel complete read sequence on the adc output channel data_ch0 stays at data_ch<0> data_ch0 don?t care sck sdi sdo cs hi-z 8x 0x01 24x starts read sequence at address 00000 24x don?t care data_ch0 data_ch0 data_ch0 <23> new data data_ch0 <23> old data
? 2014 microchip technology inc. ds20005287a-page 49 mcp3918 6.5.2 continuous write the statuscom register contains the write loop settings for the internal register address pointer (write). for the continuous write modes, the address selection can take the two following values: sdo is always in a high-impedance state during a continuous write communication. writing to a non-writable address (such as addresses 0x00 to 0x07 or any of the unused register?s addresses) has no effect and does not increment the address pointer. in this case, the user needs to stop the communication and restart a communication with a control byte pointing to a writable address (0x08 to 0x1f). 6.6 situations that reset and restart active adc immediately after the following actions, the active adc (the ones not in soft reset or shutdown modes) is reset and automatically restarted in order to provide proper operation: 1. change in phase register 2. overwrite of the same phase register value 3. change in the osr<2:0> settings 4. change in the pre<1:0> settings 5. change in the clkext setting 6. change in the vrefext setting after these temporary resets, the adc goes back to normal operation, with no need for an additional command. each adc data output register is cleared during this process. the phase register can be used to serially soft reset the adc, without using the reset bit in the config1 register, if the same value is written in the phase register. 6.7 data ready pin (dr ) to communicate when channel data is ready for transmission, the data ready signal is available on the data ready (dr ) pin at the end of a conversion. the dr pin outputs an active-low pulse with a pulse width equal to half a dmclk clock period. after a data ready pulse falling edge has occurred, the adc output data is updated within the t dodr timing and can then be read through spi communication. the first data ready pulse after a hard or a soft reset is located after the settling time of the sinc filter (see table 5-4 ) plus the phase delay of the corresponding channel (see section 5.11 ?crystal oscillator? ). each subsequent pulse is then periodic, and the period is equal to a drclk clock period (see equation 4-3 and figure 1-3 ). the data ready pulse is always synchronous with the internal drclk clock. the dr pin can be used as an interrupt pin when connected to an mcu or dsp, which will synchronize the readings of the adc data outputs. when not active-low, this pin can be either in high-impedance (when dr_hiz = 0 ) or in a defined logic high state (when dr_hiz = 1 ). this is controlled through the statuscom register. this allows multiple devices to share the same dr pin (with a pull-up resistor connected between dr and dv dd ). if only the mcp3918 device is connected on the interrupt bus, the dr pin does not require a pull-up resistor, and therefore it is recommended to use the dr_hiz = 1 configuration for such applications. the cs pin has no effect over the dr pin, which means that, even if the cs pin is logic high, the data ready pulses coming from the active adc channels will still be provided; the dr pin behavior is independent from the spi interface. while the reset pin is logic low, the dr pin is not active. the dr pin is latched in the logic low state when the interrupt flag on the crcreg is present to signal that the desired register configuration has been corrupted (see section 6.11 ?detecting configuration change through crc-16 checksum on register map and its associated interrupt flag? ). table 6-2: address selection in continuous write write register address set grouping for continuous write communications 0 static (no incrementation) 1 types (default) note: when lock<7:0> is different from 0xa5, all the addresses, except for 0x1f, become non-writable (see section 6.10 ?locking/unlocking register map write access? )
mcp3918 ds20005287a-page 50 ? 2014 microchip technology inc. 6.8 adc channel latching and synchronization the adc data output register (address 0x00) has a double buffer output structure. the two sets of latches in series are triggered by the data ready signal and an internal signal indicating the beginning of a read communication sequence (read start). the first set of latches holds the adc channel data output register when the data is ready. this behavior is synchronous with the mclk clock. the second set of latches ensures that, when reading starts on an adc output, the corresponding data is latched, so that no data corruption can occur within a read. this behavior is synchronous with the sck clock. if an adc read has started, in order to read the following adc output, the current reading needs to be fully completed (all bits must be read on the sdo pin from the adc output data registers). since the double output buffer structure is triggered with two events that depend on two asynchronous clocks (data ready pulse with mclk and read start with sck), it is recommended to implement one of the three following methods on the mcu or the processor, in order to synchronize the reading of the channels: 1. use the dr pin pulses as an interrupt : once a falling edge occurs on the dr pin, the data is available for reading on the adc output registers after the t dodr timing. if this timing is not respected, data corruption can occur. 2. use a timer clocked with mclk as a synchronization event: since the data ready pulse is synchronous with mclk, the user can calculate the position of the data ready pulse depending on the phase, the osr<2:0> and the pre<1:0> settings. again, the t dodr timing needs to be added to this calculation, to avoid data corruption. 3. poll the drstatus bit in the statuscom register: this method consists of continuously reading the statuscom register and waiting for the drstatus bit to be equal to ' 0 '. when this event happens, the user can start a new communication to read the desired adc data. in this case, no additional timing is required. the first method is the preferred one, as it can be used without adding additional mcu code space, but requires connecting the dr pin to an i/o pin of the mcu. the two last methods require more mcu code space and execution time, but they allow synchronizing the reading of the channels without connecting the dr pin, which saves one i/o pin on the mcu. 6.9 securing read communications through crc-16 checksum since power/energy metering systems can generate or receive large emi/emc interferences and large transient spikes, it is helpful to secure spi communications as much as possible to maintain data integrity and desired configurations during the lifetime of the application. the communication data on the sdo pin can be secured through the insertion of a cyclic redundancy check (crc) checksum at the end of each continuous reading sequence. the crc checksum on the communications can be enabled or disabled through the en_crccom bit in the statuscom register. the crc message ensures the integrity of the read sequence bits transmitted on the sdo pin, and the crc checksum is inserted in between each read sequence (see figure 6-10 ).
? 2014 microchip technology inc. ds20005287a-page 51 mcp3918 figure 6-9: continuous read sequences with and without crc checksum enabled. the crc checksum in the mcp3918 device uses the 16-bit crc-16 ansi polynomial as defined in the ieee 802.3 standard: x 16 +x 15 +x 2 +1 . this polynomial can also be noted as 0x8005. crc-16 detects all single and double-bit errors, all errors with an odd number of bits, all burst errors of length 16 or less, and most errors for longer bursts. this allows an excellent coverage of the spi communication errors that can happen in the system, and heavily reduces the risk of a miscommunication, even under noisy environments. the crc-16 format displayed on the sdo pin depends on the width_data<1> bit in the statuscom register (see figure 6-10 ). it can be either 16-bit or 32-bit format to be compatible with both 16-bit and 32-bit mcus. the crcreg<15:0> bits calculated by the mcp3918 device are not dependent on the format (the device always calculates only a 16-bit crc checksum). it is recommended to keep width_data<1> = width_crc when the crc checksum is enabled. if a 32-bit mcu is used in the application, it is recommended to use 32-bit formats (width_data<1> = width_crc = 1 ) only. figure 6-10: crc checksum format. the crc computed by the mcp3918 device is fully compatible with the crc hardware contained in the direct memory access (dma) peripheral of the pic24 and pic32 mcu product lines. the crc message that should be considered in the pic ? device dma is the concatenation of the read sequence and its associated checksum. when the dma crc hardware computes this extended message, the resulting checksum should be 0x0000. any other result indicates that a miscommunication has happened and that the current communication sequence should be stopped and restarted. continuous read communication without crc checksum (en_crccom=0) dont care sck sdi sdo cs hi-z 8x control byte 16x/24x/32x depending on data format addr ... addr + n starts read sequence at address addr complete read sequence addr + 1 16x/24x/32x depending on data format ... 16x/24x/32x depending on data format 16x/24x/32x depending on data format addr ... complete read sequence addr + 1 16x/24x/32x depending on data format ... 16x/24x/32x depending on data format addr + n dont care addr addr + 1 ... addr + n complete read sequence roll-over address set continuous read communication with crc checksum (en_crccom=1) dont care sck sdi sdo cs hi-z 8x control byte 16x/24x/32x depending on data format addr ... addr + n starts read sequence at address addr complete read sequence = message for crc calculation addr + 1 16x/24x/32x depending on data format ... 16x/24x/32x depending on data format 16x/24x/32x depending on data format addr ... new message addr + 1 16x/24x/32x depending on data format ... 16x/24x/32x depending on data format addr + n dont care addr addr + 1 ... addr + n complete read sequence roll-over address set crc checksum crc checksum 16x or 32x depending on crc format 16x or 32x depending on crc format crc checksum (not part of register map) new checksum checksum high z high z width_data<1> = 0 16-bit format crccom <15:8> crccom <7:0> 15 0 width_data<1> = 1 32-bit format crccom <15:8> crccom <7:0> 31 0 0x00 0x00 note: the crc will be generated only at the end of the selected address set, before the rollover of the address pointer occurs (see figure 6-10 ).
mcp3918 ds20005287a-page 52 ? 2014 microchip technology inc. 6.10 locking/unlocking register map write access the mcp3918 digital interface includes an advanced security feature that allows locking or unlocking the register map write access. this feature prevents the miscommunications that can corrupt the desired configuration of the device, especially an spi read becoming an spi write because of the noisy environment. the last register address of the register map (0x1f: lock/crc) contains the lock<7:0> bits. if these bits are equal to the password value (which is equal to the default value of 0xa5), the register map write access is not locked. any write can take place and communications are not protected. when the lock<7:0> bits are different from 0xa5, the register map write access is locked. the register map and therefore the full device configuration are write-protected. any write to an address other than 0x1f will yield no result. all the register addresses, except for 0x1f, become read-only. in this case, if the user wants to change the configuration, the lock<7:0> bits have to be reprogrammed back to 0xa5 before sending the desired write command. the lock<7:0> bits are located in the last register, so that the user can program the whole register map, starting from 0x09 to 0x1e within one continuous write sequence, and then lock the configuration at the end of the sequence with writing all zeros, for example in the 0x1f address. 6.11 detecting configuration change through crc-16 checksum on register map and its associated interrupt flag in order to prevent internal corruption of the register and to provide additional security on the register map configuration, the mcp3918 device includes an automatic and continuous crc checksum calculation on the full register map configuration bits. this calculation is not the same as the communication crc checksum described in section 6.9 ?securing read communications through crc-16 checksum? . this calculation takes the full register map as the crc message and outputs a checksum on the crcreg<15:0> bits located in the lock/crc register (address 0x1f). since this feature is intended to protect the configuration of the device, this calculation is run continuously only when the register map is locked (lock<7:0> different from 0xa5, see section 6.10 ?locking/unlocking register map write access? ). if the register map is unlocked, the crcreg<15:0> bits are cleared and no crc is calculated. the calculation is fully completed in ten dmclk periods and refreshed every ten dmclk periods continuously. the crcreg<15:0> bits are reset when a por or a hard reset occurs. all the bits contained in the defined registers from addresses 0x09 to 0x1f are processed by the crc engine to give the crcreg<15:0>. the drstatus bit is set to ' 1 ' (default) and the crcreg<15:0> bits are set to ' 0 ' (default) for this calculation engine, as they could vary during the calculation. an interrupt flag can be enabled through the en_int bit in the statuscom register and provided on the dr pin when the configuration has changed without a write command being processed. this interrupt is a logic low state. this interrupt is cleared when the register map is unlocked (since crc calculation is not processed anymore). at power-up, the interrupt is not present and the register map is unlocked. as soon as the user finishes writing its configuration, the user needs to lock the register map (writing 0x00 for example in the lock bits) to be able to use the interrupt flag. the crcreg<15:0> bits will be calculated for the first time in 10 dmclk periods. this first value will then be the reference checksum value and will be latched internally, until a hard reset, a por or an unlocking of the register map happens. the crcreg<15:0> will then be calculated continuously and checked against the reference checksum. if the crcreg<15:0> is different from the reference, the interrupt sends a flag by setting the dr pin to a logic low state until it is cleared.
? 2014 microchip technology inc. ds20005287a-page 53 mcp3918 6.12 interface mode selection (spi or 2-wire) the mcp3918 includes two different digital interfaces: a standard 4-wire half duplex spi interface (see section 6.0 ?spi serial interface description? ) and a 2-wire interface dedicated for digitally isolated applications (see section 7.0 ?2-wire serial interface description? ). the selection between these two interfaces is possible only when the clkext bit is high (clkext = 1 ). this is the case by default at por. when the clkext = 1 condition is true, the osc2/mode pin becomes the selection input pin for the interface mode. when osc2/mode is logic low during the clkext = 1 condition, the spi interface is selected. when osc2/mode pin is logic high, the 2-wire interface is selected (see figure 1-5 for the 2-wire mode selection timing diagram). if osc2/mode pin is left floating while clkext = 1 , an internal pull-down (35 a typical current) automatically selects the spi mode as the default interface. the mode selection is not combinatorial, it is latched at each por, hard reset and watchdog time reset. in other words, to change from one interface mode to another, the user needs to create one of these three resets and change the osc2/mode logic input state before exiting the applied reset.
mcp3918 ds20005287a-page 54 ? 2014 microchip technology inc. notes:
? 2014 microchip technology inc. ds20005287a-page 55 mcp3918 7.0 2-wire serial interface description 7.1 overview the 2-wire interface mode is designed for applications that require galvanic isolation. it allows a minimum number of digital isolator channels, specifically one bi-directional or two unidirectional channels, to be connected to the mcp3918 when interfacing through an isolation barrier. this functionality reduces the total system cost in an isolated application system, like a polyphase shunt-based energy meter. it is recommended to use the mcp3918 with the 2-wire mode for digitally isolated applications and with the spi mode for other applications where galvanic isolation is not required. the principle of this 2-wire interface is simple: it has a serial clock input pin (sck/mclk) and a serial data output pin (sdo), and it automatically sends output data in packets (frames) at a drclk data rate (every time new data is available on the adc output). it has no serial input pin to diminish the number of isolated channels. at the same time, the serial clock pin sck also becomes the master clock (mclk) input pin of the device, and the part becomes fully synchronous with sck = mclk. the system then becomes fully synchronous and can be driven by only one master clock for multiple phases, which ensures proper synchronization and constant phase angle between phases, which is important for an energy metering application. the sdo pin becomes the only output of the device and is fully synchronous with the serial/master clock. the sdo pin is never in high-impedance in this mode, and is by default at logic low when not transmitting data. the sdo pin idles logic low in this mode because most of the digital isolator devices consume less current in a logic low state than in a logic high state. this effectively reduces the total power consumption of a system with digital isolation devices. when the part has entered 2-wire mode, the logic pins reset , sdi, cs , osc1 and dr become logic input pins for the configuration of the device (respectively osr0/osr1/boost/gain0/gain1). these pins need to have well-defined logic states for low-power applications. these pins define the only settings that can be modified in 2-wire mode. the mdat0 pin is always disabled and kept in a high-impedance state during the 2-wire interface mode. this pin can be grounded for applications using exclusively the 2-wire interface mode so that the emi/emc susceptibility of the part is improved. figure 7-1: mcp3918 2-wire interface typical application schematic. sdo gain1 sck/mclk osr0 boost ch0+ ch0- mcp3918 analog digital sinc 3 - + pga     modulator mod<3:0> isolator isolator 2-wire interface osr1 to spi ports of an mcu gain0 logic inputs connected to dv dd or dgnd main mcu/ cpu board isolation barrier
mcp3918 ds20005287a-page 56 ? 2014 microchip technology inc. 7.2 2-wire mode configuration settings when the user wants to exclusively use the 2-wire interface mode in digitally isolated applications, the osc2 pin should always be in a logic high state, starting from the power-up of the part. otherwise, the user can change the interface mode by toggling the osc2/mode pin within a por, a hard reset or a watchdog timer reset; the mode is latched when exiting one of these three types of reset. when the part has entered 2-wire mode, the entire part configuration keeps its default settings (see section 9.0 ?mcp3918 internal registers? for the default settings of all internal registers), except for the configuration of the gain in channel 0, the osr and the boost settings. in 2-wire mode, the input pins osr0/osr1/boost/gain0/gain1 are latched on the osc2/mode rising edge and should typically be directly connected to dv dd or d gnd , depending on the desired configuration. these pins define the only configurable settings in 2-wire mode. if more settings are required by the application, it is recommended to use the spi mode. the following tables describe the configuration options for these five pins. 7.2.1 osr1/osr0 osr setting logic pins. these inputs are schmitt-triggered. 7.2.2 boost current boost setting logic pin. this input is schmitt-triggered. 7.2.3 gain1/gain0 pga gain setting logic pins. these inputs are schmitt-triggered. 7.3 2-wire communication protocol in 2-wire mode, the sck/mclk pin needs to be clocked continuously at all times for proper operation. any change in the clock frequency will lead to degraded thd/sfdr specifications. the part obeys the same timing specifications in both spi and 2-wire interface mode for sck/sdo pins. the mclk maximum input frequency is 10 mhz in 2-wire mode, since the converter still respects ta b l e 5 - 2 for maximum amclk frequency (provided the part has entered 2-wire mode at power-up). since the mclk is divided internally, the part accepts a wide range of duty cycles for the sck input, provided the serial interface timings are respected. in 2-wire interface mode, communication uses framed data sets on the sdo to output data at a fixed data rate, synchronously with sck, and using only one output pin. the frame is different depending on the device and the oversampling ratio (osr) selected. when in osr = 64 mode, the mcp3918 frame contains the sync bytes (16-bit), one channel of 16-bit adc data and a 16-bit crc. for osr = 128 and higher, each frame is a group of 7 bytes (56 bits), clocked by the serial clock sck. each frame is composed of a sync word (2 bytes), 24-bit data output word (3 bytes) and crc. the sync word comes first, followed by channel 0 adc output (data_ch0<23:0>) and 16-bit crc. see figures 7-1 and 7-2 . as a verification feature, the sync word contains all settings coming from the five logic input pins available (osr0/1, gain0/1, boost), in order to provide the user with the information about this configuration. it also provides information about the count of the frame through bits cnt0/1, which is useful when the sdo is multiplexed at the output of the digital isolators (see next paragraph). the sync word also contains an additional sync byte (fixed at 0xa5 value) for additional security in synchronization and communication. table 7-1: osr settings osr1 osr0 osr 00 64 01 128 10 256 11 512 table 7-2: current boost settings boost pin boost 0 0.5x 1 1x table 7-3: channel 0 gain settings gain1 gain0 ch0 pga gain 00 1 01 8 10 16 11 32
? 2014 microchip technology inc. ds20005287a-page 57 mcp3918 figure 7-2: frame word. these four frames can be used to multiplex sdo at the output of the digital isolators. in this case, up to four channels (typically three phases and one neutral for energy metering applications) can be multiplexed. the output data of each individual mcp3918 device can be attributed to a different frame (frame0, 1, 2 or 3), and retrieved on a single sdo line after the digital isolators, provided that the isolators have a chip enable or a multiplexing feature. the frame counter can then be used to retrieve the information about which mcp3918 part is actually being read. after the four frames have been transmitted, the sdo pin idles logic low to reduce digital isolator power consumption until the next data is available. figure 7-3 displays the timing diagram for the 2-wire interface mode, showing all osr possibilities. note that the first set of frames is sent only when the first data is ready, which means that the settling time of the sinc filter will be elapsed before sending the first set of frames, as represented in figure 7-3 . figure 7-3: mcp3918 2-wire communication protocol. crccom<15:0> 0 data_ch0<23:0> sync word (2 bytes) sdo output frame (7 bytes, 56x clocks per frame) osr0 osr1 g1 g0 boost cnt1 cnt0 0 1 1 0 1 0 0 1 channel 0 adc data (3 bytes) sdo sck/ mclk crccom<15:0> crccom on entire frame (2 bytes) data_ch0<15:0> 0 sync word (2 bytes) sdo output frame (6 bytes, 48x clocks per frame) osr0 osr1 g1 g0 boost cnt1 cnt0 0 1 1 0 1 0 0 1 channel 0 adc data (2 bytes) sdo sck/ mclk frame clocking for osr>64 frame clocking for osr=64 crccom on entire frame (2 bytes) table 7-4: frame counter settings cnt1 cnt0 frame number 00 frame0 01 frame1 10 frame2 11 frame3 sdo (osr=64) 00 internal data ready (data is unsettled). no frame is transmitted data ready. new data is available osc2/ mode 256x clocks 256x clocks 256x clocks sck/mclk 256x clocks 256x clocks 256x clocks 256x clocks 256x clocks 256x clocks 256x clocks 256x clocks 256x clocks 256x clocks 256x clocks 256x clocks 256x clocks 256x clocks 256x clocks 256x clocks 256x clocks 256x clocks 256x clocks 256x clocks 256x clocks 256x clocks data=d1 data=d2 data=d3 data=d4 data=0 data=d5 data=d6 data=d7 data=d8 data=d9 data=d10 data=d11 data=d12 data=d13 data=d14 data=d15 data=d16 data=d17 data=d18 data=d19 data=d20 data =d21 data=d22 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 0 data=d1 data=d2 data=d3 data=d4 data=d5 data=d6 data=d7 data=d8 data=d9 data=d10 0 data=d1 data=d2 data=d3 data=d4 0 data=d1 0 0 0 0 0 0000 00000 0 000 2-wire mode hi-z hi-z hi-z hi-z sdo (osr=128) sdo (osr=256) sdo (osr=512) 0 0 0 0 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3 frame0 frame1 frame2 frame3
mcp3918 ds20005287a-page 58 ? 2014 microchip technology inc. 7.4 watchdog timer reset, resetting the part when in 2-wire mode when the part has entered 2-wire mode, the hard reset mode functionality is not available because the reset pin becomes the logic input for osr0. if the user wants to execute a full reset of the part without doing a por, the 2-wire mode incorporates an internal watchdog timer that automatically performs a full reset of the part, provided that the timer has elapsed. the watchdog timer starts synchronously with each rising edge of sck/mclk. if the sck logic high state is maintained for a time that is larger than t watch , the watchdog timer circuit forces the full reset of the chip, which then returns to its default configuration with the adc being reset. if the sck logic high state is maintained for a time shorter than t watch and then sck/mclk toggles to logic low, the internal timer is cleared, waiting for another rising edge to restart. the watchdog timer functionality induces a restriction in the usable range of frequencies on sck/mclk. in order to avoid intermittent resets in all cases, the minimum sck/mclk frequency in 2-wire interface mode is equal to the inverse of the minimum t watch time (1/(2 x 3.6 s) = 138.9 khz, if the duty cycle of the sck/mclk is 50%). the watchdog timer starts only on the rising edge of sck/mclk, not on the falling edge. maintaining sck/mclk at a logic low state for large periods of time does not create any watchdog timer resets. a watchdog timer reset is created only when the sck/mclk state is maintained logic high during a long enough period of time. this watchdog timer period permits exiting the 2-wire interface, if desired, by toggling the osc2/mode pin to logic low before creating the watchdog timer reset and maintaining it logic low until the reset occurs.
? 2014 microchip technology inc. ds20005287a-page 59 mcp3918 8.0 basic application configuration one of the main applications for the mcp3918 is energy/power measurement in systems where the adc sampling the current needs to be isolated from the rest of the design. figure 8-1 can be used as a starting point for mcp3918 applications. for power measurements, since mcp3918 is a 1-channel adc, it is recommended to use it for current samples acquisition and to use the mcu adc for voltage samples acquisition. the isolator used between mcu and adc needs to be fast enough to support the high-speed clock between mcu and adc and the data coming from adc to mcu. this is typically the case in a polyphase shunt-based power/energy metering or monitoring application. in this case, each phase needs to be isolated from the rest of the design and, since the sensor is not providing this isolation, the isolation needs to be provided at the output of the analog front-end. the mcp3918 device is built to work seamlessly with a large variety of two-channel unidirectional digital isolators (opto-couplers, capacitive or inductive integrated digital isolators with or without embedded power supplies). figure 8-1: mcp3918 three-phase shunt energy meter ? typical application schematic for each phase. 8.1 power supply design and bypassing to power the isolated adc, an isolated dc/dc converter that can be embedded with the isolated data communication channels (as in figure 8-1 ) or other structures that provide isolated power supplies (e.g., fly-back converter) can be used. for single-phase designs where isolation between adc and mcu is not required, the spi connection is also available. this spi interface could also be used with isolators but this would require four isolators instead of two (for the 2-wire mode) and, therefore, this configuration is not preferred. 8.2 power supply design and bypassing the mcp3918 device was designed to measure positive and negative voltages that might be generated by a current-sensing device. this current-sensing device, with a common-mode voltage close to 0v, is referred to as a gnd , which is a shunt or current transformer (ct) with burden resistors attached to ground. the high performance and good flexibility that characterize this adc enable it to be used in other applications, as long as the absolute voltage on each pin, referred to a gnd , stays in the -1v to +1v range. 3910a_sdo a_gndd a_gnda a_gnda 10 r76 0.1uf c52 10 r100 0.1uf c43 10 r86 a_gnda a_gnda a_gnda 0.1uf c46 a_3.3d a_3.3a a_gndd dr / gain1 14 dgnd 11 agnd 8 ch0- 5 dvdd 2 osc1/clki 15 sck / mclk 18 mdat1 12 mdat0 13 nc 6 nc 7 rfin/out+ 9 rfin- 10 reset / osr0 1 avdd 3 ch0+ 4 cs / boost 17 osc2 / mode 16 sdo 19 sdi / osr1 20 dr / ga i n1 dg nd ag nd c h0- dv dd osc1 / c l ki sc k / m c lk mdat 1 md a t 0 n c n c r fi n/ ou t + r fi n- r eset / osr0 a v dd c h0+ cs / b oost osc2 / mode s d o s di / osr 1 u3 mcp3918a1t/iss 1 2 3 j24 1 2 3 j25 a_3.3d 1k r80 a_gndd 1 2 3 j26 1 2 3 j27 1 2 3 j28 high low high low low low high high gain1 gain0 boost osr1 osr0 high low 1k r79 3910a_clkin 10 r87 3910a_sdo a_gndd a_3.3d 3910a_clkin 3910_clkin_mcu_a phase a a_3.3d a_3.3d a_3.3a a_gnda vbt1-s5-s5 -vin 1 +vin 2 +vout 5 -vout 4 - v i n +vi n +v ou t - v ou t dc dc u7 4.7uf c63 mcp1754-3.3v vin 3 gnd 1 vout 2 vin gnd vout nd nd u18 a_gndd 0.1uf c57 4.7uf c22 5v l2 gnd 3.3d gnd 0.1uf 0603 c68 3.3d gnd 0.1uf 0603 c60 a_3.3d a_gndd nt3 3910a_sdo_mcu/rc3 vdd1 1 voa 2 vib 3 gnd1 4 vdd2 8 via 7 vob 6 gnd2 5 vdd1 vo a vib gnd1 vdd2 v v v i a vob gnd2 g g fod8012 u21 a_gnda a_gnda a_gnda a_gnda a_gnda 0.1uf c5 1k r5 1k r4 0.1uf c1 line_shunt1 line_shunt2 via_1.6x1 cp1 via_1.6x1 cp2 dnp r3 dnp r6 fb2 fb3
mcp3918 ds20005287a-page 60 ? 2014 microchip technology inc. in any system, the analog ics (such as references or operational amplifiers) are always connected to the analog ground plane. the mcp3918 should also be considered as a sensitive analog component, and should be connected to the analog ground plane. the adc features two pairs of pins: a gnd , av dd , d gnd and dv dd . for best performance, it is recommended to keep the two pairs connected to two different networks ( figure 8-2 ). this way, the design will feature two ground traces and two power supplies ( figure 8-3 ). this means the analog circuitry (including mcp3918) and the digital circuitry (mcu) should have separate power supplies and return paths to the external ground reference, as described in figure 8-2 . an example of a typical power supply circuit, with different lines for analog and digital power, is shown in figure 8-3 . a possible split example is shown in figure 8-4 , where the ground star connection can be done at the bottom of the device with the exposed pad. the split between analog and digital can be done under the device, and av dd and dv dd can be connected together with lines coming under the ground plane. another possibility, sometimes easier to implement in terms of pcb layout, is to consider the mcp3918 as an analog component and, therefore, to connect both av dd and dv dd together, and a gnd and d gnd together, with a star connection. in this scheme, the decoupling capacitors may be larger, due to the ripple on the digital power supply (caused by the digital filters and the spi interface of the mcp3918) now causing glitches on the analog power supply. figure 8-2: all analog and digital return paths need to stay separate with proper bypass capacitors. figure 8-3: power supply with separate lines for analog and digital sections. v a v d mcu ?star? point i a i d i d i a av dd dv dd a gnd d gnd d - = a - = 0.1 f mcp39xx 0.1 f c note: the ?net tie? object nt2 represents the start ground connection.
? 2014 microchip technology inc. ds20005287a-page 61 mcp3918 figure 8-4: separation of analog and digital circuits on layout. figure 7-5 shows a more detailed example with a direct connection to a high-voltage line (e.g., a two-wire 120v or 220v system). a current-sensing shunt is used for current measurement on the high/line side that also supplies the ground for the system. this is necessary as the shunt is directly connected to the channel input pins of the mcp3918. to reduce sensitivity to external influences, such as emi, these two wires should form a twisted pair, as noted in figure 8-5 . the power supply and mcu are separated on the right side of the pcb, surrounded by the digital ground plane. the mcp3918 is kept on the left side, surrounded by the analog ground plane. there are two separate power supplies going to the digital section of the system and the analog section, including the mcp3918. with this placement, there are two separate current supply paths and current return paths, i a and i d . figure 8-5: connection diagram. the ferrite bead between the digital and analog ground planes helps keep high-frequency noise from entering the device. this ferrite bead is recommended to be low resistance; most often it is a tht component. ferrite beads are typically placed on the shunt inputs and into the power supply circuit for additional protection. 8.3 spi interface digital crosstalk the mcp3918 incorporates a high-speed 20-mhz spi digital interface. this interface can induce a crosstalk, if it is running at its full speed without any precautions. the crosstalk is caused by the switching noise created by the digital spi signals (also called ground bouncing). this crosstalk would negatively impact the snr in this case. the noise is attenuated if a proper separation between the analog and digital power supplies is put in place (see section 8.2 ?power supply design and bypassing? ). in order to further remove the influence of the spi communication on measurement accuracy, it is recommended to add series resistors on the spi lines to reduce the current spikes caused by the digital switching noise (see figure 8-1 where these resistors have been implemented). the resistors also help to keep the level of electromagnetic emissions low. the measurement graphs provided in this data sheet have been performed with 100 ?? series resistors connected on each spi i/o pin. measurement accuracy distur- bances have not been observed even at the full speed of 20 mhz interfacing. the crosstalk performance is dependent on the package choice due to the difference in the pin arrangement (dual in-line or quad), and is improved in the qfn-20 package. mcu power supply circuitry line neutral shunt twisted pair i a i d i d i a ?star? point v a v d analog ground plane digital ground plane mcp3918
mcp3918 ds20005287a-page 62 ? 2014 microchip technology inc. 8.4 sampling speed and bandwidth if adc power consumption is not a concern in the design, the boost settings can be increased for best performance so that the osr is always kept at the maximum settings to improve the sinad performance (see table 7-1 ). if the mcu cannot generate a clock fast enough, it is possible to tap the osc1/osc2 pins of the mcp3918 crystal oscillator directly to the crystal of the microcontroller. when the sampling frequency is enlarged, the phase resolution is improved, and with the osr increased, the phase compensation range can be kept in the same range as the default settings. 8.5 differential inputs anti-aliasing filter due to the nature of the adc used in the mcp3918 (oversampling converter), each differential input of the adc channels requires an anti-aliasing filter so that the oversampling frequency (dmclk) is largely attenuated and does not generate any disturbances on the adc accuracy. this anti-aliasing filter also needs to have a gain close to the one in the signal bandwidth of interest. typically, for 50/60 hz measurement and default settings (dmclk = 1 mhz), a simple rc filter with 1k ? and 100 nf can be used. the anti-aliasing filter used for the measurement graphs is a first-order rc filter with 1 k ?? and 15 nf. the typical schematic for connecting a current transformer to the adc is shown in figure 8-6 . if wires are involved, twisting them is also recommended. figure 8-6: first-order anti-aliasing filter for ct-based designs. the di/dt current sensors, such as rogowski coils, can be an alternative to current transformers. since these sensing elements are highly sensitive to high-frequency electromagnetic fields, using a second-order anti-aliasing filter is recommended to increase the attenuation of potential perturbing rf signals. figure 8-7: second-order anti-aliasing filter for rogowski coil-based designs. the filter presented in figure 8-7 is an anti-aliasing filter. the di/dt integrator can be created in firmware as a first-order low-pass filter with corner frequency much lower than the input signal. the mcp3918 is highly recommended in applications using di/dt as current sensors because of the extremely low noise floor at low frequencies. in such applications, a low-pass filter (lpf) with a cut-off frequency much lower than the signal frequency (50/60 hz for metering) is used to compensate for the 90 degree shift and for the 20 db/decade attenuation induced by the di/dt sensor. because of this filter, the snr will be decreased, since the signal will be attenuated by a few orders of magnitude, while the low-frequency noise will not be attenuated. usually, a high-order high-pass filter (hpf) is used to attenuate the low-frequency noise in order to prevent a dramatic degradation of the snr, which can be very important in other parts. a high-order filter will also consume a significant portion of the computation power of the mcu. when using the mcp3918, such a high-order hpf is not required, since this part has a low noise floor at low frequencies. a first-order hpf is enough to achieve very good accuracy. table 8-1: sampling speed vs. mclk and osr, adc prescale 1:1 mclk (mhz) boost osr sampling speed (ksps) 16 0b11 1024 3.91 14 0b11 1024 3.42 12 0b11 1024 2.93 10 0b10 1024 2.44 8 0b10 512 3.91 6 0b01 512 2.93 4 0b01 256 3.91
? 2014 microchip technology inc. ds20005287a-page 63 mcp3918 8.6 energy measurement error considerations the measurement error is a typical representation of the non-linearity of the adc (see section 4.0 ?terminology and formulas? for the definition of measurement error). the measurement error is dependent on the thd and on the noise floor of the adc. the measurement error specification on the mcp3918 can be improved by increasing the osr (to get a better sinad and thd performance) and, to some extent, the boost settings (if the bandwidth of the measurements is too limited by the bandwidth of the amplifiers in the sigma-delta adc). in most of the energy metering ac applications, high-pass filters are used to cancel the offset on each adc channel (current and voltage channels), and therefore a single-point calibration is necessary to calibrate the system for active energy measurement. this calibration is a system gain calibration, and the user can utilize the en_gaincal bit and the gaincal_ch0 register to perform this digital calibration. after such calibration, typical measurement error curves like the ones in figure 2-7 can be generated by sweeping the current channel amplitude and measuring the energy at the outputs (the energy calculations here are being realized off-chip). the error is measured using a gain of 1x, as it is commonly used in most ct-based applications. at low signal amplitude values (typically 1000:1 dynamic range and higher), the crosstalk between channels, mainly caused by the pcb, becomes a significant part of the perturbation as the measurement error increases. the 1-point measurement error curves in figure 2-5 have been performed with a full-scale sine wave on all the inputs that are not measured, which means that these channels induce a maximum amount of crosstalk on the measurement error curve. in order to avoid such behavior, a 2-point calibration can be put in place in the calculation section. this 2-point calibration can be a simple linear interpolation between two calibration points (one at high amplitudes, one at low amplitudes at each end of the dynamic range) and helps to significantly lower the effect of crosstalk between channels. a 2-point calibration is very effective in maintaining the measurement error close to zero on the whole dynamic range, since the non-linearity and distortion of the mcp3918 is very low. figure 2-6 shows the measurement error curves obtained with the same adc data taken for figure 2-5 , but where a 2-point calibration has been applied. the difference is significant only at the low end of the dynamic range, where all the perturbing factors are a bigger part of the adc output signals. these curves show extremely tight measurement error across the full dynamic range (here, typically 10,000:1), which is required in high-accuracy class meters.
mcp3918 ds20005287a-page 64 ? 2014 microchip technology inc. notes:
? 2014 microchip technology inc. ds20005287a-page 65 mcp3918 9.0 mcp3918 internal registers the addresses associated with the internal registers are listed in table 9-1 . this section also describes the registers in detail. all registers are 24-bit long registers, which can be addressed and read separately. the format of the data register (0x00) can be changed through the width_crc and width_data<1:0> bits in the statuscom register. the read<1:0> and write bits define the groups and types of registers for continuous read/write communication or looping on address sets, as shown in tab l e 9 - 2 . table 9-1: mcp3918 register map address name bits r/w description 0x00 channel0 24 r channel 0 adc data <23:0>, msb first 0x01 unused 24 u unused 0x02 unused 24 u unused 0x03 unused 24 u unused 0x04 unused 24 u unused 0x05 unused 24 u unused 0x06 unused 24 u unused 0x07 unused 24 u unused 0x08 mod 24 r/w delta-sigma modulators output value 0x09 phase 24 u phase delay configuration register 0x0a unused 24 u unused 0x0b gain 24 r/w gain configuration register 0x0c statuscom 24 r/w status and communication register 0x0d config0 24 r/w configuration register 0x0e config1 24 r/w configuration register 0x0f offcal_ch0 24 r/w offset correction register - channel 0 0x10 gaincal_ch0 24 r/w gain correction register - channel 0 0x11 unused 24 u unused 0x12 unused 24 u unused 0x13 unused 24 u unused 0x14 unused 24 u unused 0x15 unused 24 u unused 0x16 unused 24 u unused 0x17 unused 24 u unused 0x18 unused 24 u unused 0x19 unused 24 u unused 0x1a unused 24 u unused 0x1b unused 24 u unused 0x1c unused 24 u unused 0x1d unused 24 u unused 0x1e unused 24 u unused 0x1f lock/crc 24 r/w security register (password and crc-16 on register map)
mcp3918 ds20005287a-page 66 ? 2014 microchip technology inc. table 9-2: register map grouping for all continuous read/write modes function address read<1:0> write = ? 11 ? = ? 10 ? = ? 01 ? = ? 00 ? = ? 1 ? = ? 0 ? channel 0 0x00 loop entire register map type group static not writable mod 0x08 type group static type static gain 0x0b static static statuscom 0x0c group static static config0 0x0d static static config1 0x0e static static offcal_ch0 0x0f group static static gaincal_ch0 0x10 static static lockcrc 0x1f group static static
? 2014 microchip technology inc. ds20005287a-page 67 mcp3918 9.1 channel register ? adc channel data output register the adc channel data output register always contains the most recent a/d conversion data. this register is read-only. this register is latched when an adc read communication occurs. when a data ready event occurs during a read communication, the most current adc data is also latched to avoid data corruption issues. the three bytes of each channel are updated synchronously at a drclk rate. they can be accessed separately, if needed, but are refreshed synchronously. name bits address cof. channel0 24 0x00 r register 9-1: channel register r-0 r-0 r-0 r-0 r-0 r-0 r-0 r-0 data_ch0 <23> (msb) data_ch0 <22> data_ch0 <21> data_ch0 <20> data_ch0 <19> data_ch0 <18> data_ch0 <17> data_ch0 <16> bit 23 bit 16 r-0 r-0 r-0 r-0 r-0 r-0 r-0 r-0 data_ch0 <15> data_ch0 <14> data_ch0 <13> data_ch0 <12> data_ch0 <11> data_ch0 <10> data_ch0 <9> data_ch0 <8> bit 15 bit 8 r-0 r-0 r-0 r-0 r-0 r-0 r-0 r-0 data_ch0 <7> data_ch0 <6> data_ch0 <5> data_ch0 <4> data_ch0 <3> data_ch0 <2> data_ch0 <1> data_ch0 <0> bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23-0 data_ch0: output code from adc. this data is post-calibration if the en_offcal or en_gaincal bits are enabled. this data can be formatted in 16-/24-/32-bit modes, depending on the width_- data<1:0> settings. (see section 5.5 ?adc output coding? .)
mcp3918 ds20005287a-page 68 ? 2014 microchip technology inc. 9.2 mod register ? modulators output register the mod register contains the most recent modulator data output and is updated at a dmclk rate. the default value corresponds to an equivalent input of 0v on the adc. each bit in this register corresponds to one comparator output on one of the channels. this register should not be written to ensure adc accuracy. name bits address cof. mod 24 0x08 r/w register 9-2: mod register u-0 u-0 u-0 u-0 u-0 u-0 u-0 u-0 ? ? ? ? ? ? ? ? bit 23 bit 16 u-0 u-0 u-0 u-0 u-0 u-0 u-0 u-0 ? ? ? ? ? ? ? ? bit 15 bit 8 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-1 r/w-1 ? ? ? ? comp3_ch0 comp2_ch0 comp1_ch0 comp0_ch0 bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23-4 unimplemented : read as ? 0 ? bit 3-0 compn_ch0: comparator outputs from adc
? 2014 microchip technology inc. ds20005287a-page 69 mcp3918 9.3 phase register ? phase configuration register any write to this register automatically resets and restarts the active adc. name bits address cof. phase 24 0x0a r/w register 9-3: phase register u-0 u-0 u-0 u-0 u-0 u-0 u-0 u-0 ? ? ? ? ? ? ? ? bit 23 bit 16 u-0 u-0 u-0 u-0 r/w-0 r/w-0 r/w-0 r/w-0 ? ? ? ? phase<11> phase<10> phase<9> phase<8> bit 15 bit 8 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 phase<7> phase<6> phase<5> phase<4> phase<3> phase<2> phase<1> phase<0> bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23-12 unimplemented : read as ? 0 ? bit 11-0 phase<11:0> conversion start delay. delay = (phase<11:0> decimal code + osr/2)/dmclk.
mcp3918 ds20005287a-page 70 ? 2014 microchip technology inc. 9.4 gain register ? pga gain configuration register name bits address cof. gain 24 0x0b r/w register 9-4: gain register u-0 u-0 u-0 u-0 u-0 u-0 u-0 u-0 ? ? ? ? ? ? ? ? bit 23 bit 16 u-0 u-0 u-0 u-0 u-0 u-0 u-0 u-0 ? ? ? ? ? ? ? ? bit 15 bit 8 u-0 u-0 u-0 u-0 u-0 r/w-0 r/w-0 r/w-0 ? ? ? ? ? pga_ch0<2> pga_ch0<1> pga_ch0<0> bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23-3 unimplemented: read as ? 0 ? bit 2-0 pga_ch0<2:0>: pga setting 111 = reserved (gain = 1) 110 = reserved (gain = 1) 101 = gain is 32 100 = gain is 16 011 = gain is 8 010 = gain is 4 001 = gain is 2 000 = gain is 1 (default)
? 2014 microchip technology inc. ds20005287a-page 71 mcp3918 9.5 statuscom register - status and communication register name bits address cof. statuscom 24 0x0c r/w register 9-5: statuscom register r/w-1 r/w-0 r/w-1 r/w-0 u-0 r/w-0 r/w-0 r/w-1 read<1> read<0> write dr_hiz ? width_ crc width_ data<1> width_ data<0> bit 23 bit 16 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 u-0 u-0 u-0 en_crccom en_int reserved reserved en_mdat ? ? ? bit 15 bit 8 u-0 u-0 u-0 u-0 u-0 u-0 r-1 r-1 ? ? ? ? ? ? ? drstatus<0> bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23-22 read<1:0>: address counter increment setting for read communication 11 = address counter auto-increments, loops on the entire register map 10 = address counter auto-increments, loops on register types (default) 01 = address counter auto-increments, loops on register groups 00 = address not incremented, continually reads the same single-register address bit 21 write: address counter increment setting for write communication 1 = address counter loops on writable part of the register map (default) 0 = address not incremented, continually writes to the same single-register address bit 20 dr_hiz : data ready pin inactive state control 1 =the dr pin state is a logic high when data is not ready 0 =the dr pin state is high-impedance when data is not ready (default) bit 19 unimplemented: read as ? 0 ? bit 18 width_crc format for crc-16 on communications 1 = 32-bit (crc-16 code is followed by sixteen zeros). this coding is compatible with crc implementation in most 32-bit mcus (including pic32 mcus). 0 = 16-bit (default) bit 17-16 width_data<1:0>: adc data format settings for the adc (see section 5.5 ?adc output coding? ) 11 = 32-bit with sign extension 10 = 32-bit with zeros padding 01 = 24-bit (default) 00 = 16-bit (with rounding) bit 15 en_crccom: enable crc crc-16 checksum on serial communications 1 = crc-16 checksum is provided at the end of each communication sequence (therefore each communication is longer). the crc-16 message is the complete communication sequence (see section section 6.9 ?securing read communications through crc-16 checksum? for more details). 0 =disabled (default)
mcp3918 ds20005287a-page 72 ? 2014 microchip technology inc. bit 14 en_int: enable the crcreg interrupt function 1 = the interrupt flag for the crcreg checksum verification is enabled. the data ready pin (dr ) will become logic low and stays logic low if a crcreg checksum error happens. this interrupt is cleared if the lock<7:0> value is made equal to the password value (0xa5). 0 = the interrupt flag for the crcreg checksum verification is disabled. the crcreg<15:0> bits are still calculated properly and can still be read in this mode. bit 13-12 reserved: these bits should be kept equal to ' 0 ' at all times. bit 11 en_mdat: enable modulator output 1 = mdat0 output is enabled 0 = mdat0 output is disabled (default) bit 10-1 unimplemented: read as ? 0 ? bit 0 drstatus: data ready status bit drstatus = 1 - channel ch0 data is not ready (default) drstatus = 0 - channel ch0 data is ready. the status bit is set back to ' 1 ' after reading the statuscom register. the status bit is not set back to ' 1 ' by the read of the corresponding channel adc data. register 9-5: statuscom register (continued)
? 2014 microchip technology inc. ds20005287a-page 73 mcp3918 9.6 config0 register - configuration register 0 name bits address cof. config0 24 0x0d r/w register 9-6: co nfig0 register r/w-0 r/w-0 r/w-1 r/w-1 r/w-1 r/w-0 r/w-0 r/w-0 en_offcal en_gaincal dither<1> dither<0> boost<1> boost<0> pre<1> pre<0> bit 23 bit 16 r/w-0 r/w-1 r/w-1 u-0 u-0 u-0 u-0 u-0 osr<2> osr<1> osr<0> ? ? ? ? ? bit 15 bit 8 r/w-0 r/w-1 r/w-0 r/w-1 r/w-0 r/w-0 r/w-0 r/w-0 vrefcal<7> vrefcal<6> vrefcal<5> vrefcal<4> vrefcal<3> vrefcal<2> vrefcal<1> vrefcal<0> bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23 en_offcal: enables the 24-bit digital offset error calibration on all channels 1 = enabled. this mode does not add any group delay to the adc data. 0 = disabled (default) bit 22 en_gaincal: enables or disables the 24-bit digital gain error calibration on all channels 1 = enabled. this mode adds a group delay on all channels of 24 dmclk periods. all data ready pulses are delayed by 24 clock periods, compared to the mode with en_gaincal = 0 . 0 = disabled (default) bit 21-20 dither<1:0>: control for dithering circuit for idle tones cancellation and improved thd on all channels 11 = dithering on, strength = maximum (default) 10 = dithering on, strength = medium 01 = dithering on, strength = minimum 00 = dithering turned off bit 19-18 boost<1:0>: bias current selection for the adc (impacts achievable maximum sampling speed, see tab le 5 -2 ) 11 = all channels have current x 2 10 = all channels have current x 1 (default) 01 = all channels have current x 0.66 00 = all channels have current x 0.5 bit 17-16 pre<1:0> analog master clock (amclk) prescaler value 11 =amclk=mclk/8 10 =amclk=mclk/4 01 =amclk=mclk/2 00 = amclk = mclk (default)
mcp3918 ds20005287a-page 74 ? 2014 microchip technology inc. bit 15-13 osr<2:0> oversampling ratio for delta-sigma a/d conversion (all channels, f d /f s ) 111 = 4096 ( f d = 244 sps for mclk = 4 mhz, f s =amclk=1mhz) 110 = 2048 ( f d = 488 sps for mclk = 4 mhz, f s =amclk=1mhz) 101 = 1024 ( f d = 976 sps for mclk = 4 mhz, f s =amclk=1mhz) 100 = 512 ( f d = 1.953 ksps for mclk = 4 mhz, f s =amclk=1mhz) 011 =256 ( f d = 3.90625 ksps for mclk = 4 mhz, f s =amclk=1mhz) (default) 010 =128 ( f d = 7.8125 ksps for mclk = 4 mhz, f s =amclk=1mhz) 001 =64 ( f d = 15.625 ksps for mclk = 4 mhz, f s =amclk=1mhz) 000 =32 ( f d = 31.25 ksps for mclk = 4 mhz, f s =amclk=1mhz) bit 12-8 unimplemented: read as ? 0 ? bit 7-0 vrefcal<7:0>: internal voltage temperature coefficient vrefcal<7:0> value. (see section 5.6.3 ?temperature compensation (vrefcal<7:0>)? for complete description). register 9-6: config0 register (continued)
? 2014 microchip technology inc. ds20005287a-page 75 mcp3918 9.7 config1 register ? configuration register 1 name bits address cof. config1 24 0x0e r/w register 9-7: co nfig1 register u-0 u-0 u-0 u-0 u-0 u-0 u-0 r/w-0 ? ? ? ? ? ? ? reset<0> bit 23 bit 16 u-0 u-0 u-0 u-0 u-0 u-0 u-0 r/w-0 ? ? ? ? ? ? ? shutdown<0> bit 15 bit 8 r/w-0 r/w-1 u-0 u-0 u-0 u-0 u-0 u-0 vrefext clkext ? ? ? ? ? ? bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23-17 unimplemented: read as ? 0 ? bit 16 reset<0>: soft reset mode setting for the adc = adc channel in soft reset mode = adc channel not in soft reset mode bit 15-9 unimplemented: read as ? 0 ? bit 8 shutdown<0>: shutdown mode setting for the adc = adc channel in shutdown mode = adc channel not in shutdown mode bit 7 vrefext: internal voltage reference selection bit 1 = internal voltage reference disabled. an external reference voltage needs to be applied across the refin+/- pins. the analog power consumption (ai dd ) is slightly diminished in this mode since the internal voltage reference is placed in shutdown mode. 0 = internal reference enabled. for optimal accuracy, the refin+/out pin needs proper decoupling capacitors. refin- pin should be connected to a gnd , when in this mode. bit 6 clkext: internal clock selection bit 1 = mclk is generated externally and should be provided on osc1 pin: the crystal oscillator is disabled and consumes no current (default) 0 = crystal oscillator enabled. a crystal must be placed between osc1 and osc2 with proper decoupling capacitors. the digital power consumption (di dd ) is increased in this mode due to the oscillator. bit 5-0 unimplemented: read as ? 0 ?
mcp3918 ds20005287a-page 76 ? 2014 microchip technology inc. 9.8 offcal_ch0 and gaincal_ch0 registers ? digital offset and gain error calibration registers name bits address cof. offcal_ch0 24 0x0f r/w gaincal_ch0 24 0x10 r/w register 9-8: offcal_ch0 register r/w-0 r/w-0 r/w-0 ... r/w-0 r/w-0 r/w-0 r/w-0 offcal_ch0 <23> offcal_ch0 <22> offcal_ch0 <21> ... offcal_ch0 <3> offcal_ch0 <2> offcal_ch0 <1> offcal_ch0 <0> bit 23 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23-0 offcal_ch0: digital offset calibration value for the corresponding channel ch0. this register is simply added to the output code of the channel bit by bit. this register is 24-bit two's complement msb first coding. ch0 output code = offcal_ch0 + adc ch0 output code. this register is a don't care if en_offcal = 0 (offset calibration disabled), but its value is not cleared by the en_offcal bit. register 9-9: gaincal_ch0 register r/w-0 r/w-0 r/w-0 ... r/w-0 r/w-0 r/w-0 r/w-0 gaincal_ch0 <23> gain- cal_ch0<22> gaincal_ch0 <21> ... gaincal_ch0 <3> gaincal_ch0 <2> gaincal_ch0 <1> gaincal_ch0 <0> bit 23 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23-0 gaincal_ch0: digital gain error calibration value for the corresponding channel ch0. this register is signed 24-bit msb first format with a range of -1x to +0.9999999x (from 0x80000 to 0x7fffff). the gain calibration adds 1x to this register and multiplies it to the output code of the channel bit by bit, after offset calibration. the range of the gain calibration is thus from 0x to 1.9999999x (from 0x80000 to 0x7fffff). the lsb corresponds to a 2 -23 increment in the multiplier. adc output code = (gaincal_ch0+1)*adc ch0 output code. this register is a don't care if en_gaincal = 0 (gain calibration disabled) but its value is not cleared by the en_gaincal bit.
? 2014 microchip technology inc. ds20005287a-page 77 mcp3918 9.9 security register ? password and crc-16 on register map name bits address cof. lock/crc 24 0x1f r/w register 9-10: lock/crc register r/w-1 r/w-0 r/w-1 r/w-0 r/w-0 r/w-1 r/w-0 r/w-1 lock<7> lock<6> lock<5> lock<4> lock<3> lock<2> lock<1> lock<0> bit 23 bit 16 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 crcreg<15> crcreg<14> crcreg<13> crcreg<12 > crcreg<11> crcreg<10> crcreg<9> crcreg<8> bit 15 bit 8 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 r/w-0 crcreg<7> crcreg<6> crcreg<5> crcreg<4> crcreg<3> crcreg<2> crcreg<1> crcreg<0> bit 7 bit 0 legend: r = readable bit w = writable bit u = unimplemented bit, read as ?0? -n = value at por ?1? = bit is set ?0? = bit is cleared x = bit is unknown bit 23-16 lockn<7:0>: lock code for the writable part of the register map lock<7:0> = password = 0xa5 (default value): th e entire register map is writable. the crcreg<15:0> bits and the crc interrupt are cleared. no crc-16 checksum on register map is calculated. lock<7:0> different from 0xa5: the only writable register is the lock/crc register. all other registers will appear as undefined while in this mode. the crcreg checksum is calculated continuously and can generate interrupts if the crc interrupt en_int bit has been enabled. if a write to a register needs to be performed, the user needs to unlock the register map beforehand, by writing 0xa5 to the lock<7:0> bits. bit 15-0 crcreg<15:0>: crc-16 checksum that is calculated with the writable part of the register map as a message. this is a read-only 16-bit code. this checksum is continuously recalculated and updated every 10 dmclk periods. it is reset to its default value (0x0000) when lock<7:0> = 0xa5.
mcp3918 ds20005287a-page 78 ? 2014 microchip technology inc. notes:
? 2014 microchip technology inc. ds20005287a-page 79 mcp3918 10.0 packaging information 10.1 package marking information legend: xx...x customer-specific information y year code (last digit of calendar year) yy year code (last 2 digits of calendar year) ww week code (week of january 1 is week ?01?) nnn alphanumeric traceability code pb-free jedec designator for matte tin (sn) * this package is pb-free. the pb-free jedec designator ( ) can be found on the outer packaging for this package. note : in the event the full microchip part number cannot be marked on one line, it will be carried over to the next line, thus limiting the number of available characters for customer-specific information. 3 e 3 e 20-lead qfn (4x4x0.9 mm) example pin 1 pin 1 3918 a1 e/ml ^^ 415256 3 e 20-lead ssop (5.30 mm) example mcp3918a1 e/ss ^^ 1415256 3 e
mcp3918 ds20005287a-page 80 ? 2014 microchip technology inc. d exposed pad e e2 2 1 n top view note 1 n l k b e d2 2 1 a a1 a3 bottom view
? 2014 microchip technology inc. ds20005287a-page 81 mcp3918
mcp3918 ds20005287a-page 82 ? 2014 microchip technology inc. l l1 a2 c e b a1 a 12 note 1 e1 e d n
? 2014 microchip technology inc. ds20005287a-page 83 mcp3918 note: for the most current package drawings, please see the microchip packaging specification located at http://www.microchip.com/packaging
mcp3918 ds20005287a-page 84 ? 2014 microchip technology inc. notes:
? 2014 microchip technology inc. ds20005287a-page 85 mcp3918 appendix a: revision history revision a (may 2014) ? original release of this document.
? 2014 microchip technology inc. ds20005287a-page 86 mcp3918 product identification system to order or obtain information, e. g., on pricing or delivery, refer to the factory or the listed sales office . device: mcp3918a1: one channel analog font end converter address options: xx a6 a5 a0 = 0 0 a1* = 0 1 a2 = 1 0 a3 = 1 1 * default option. contact microchip factory for other address options tape and reel: t = tape and reel temperature range: e = -40c to +125c package: ml = 20-lead plastic quad flat, no lead package ? 4x4 mm body with 0.40 mm contact length (qfn) ss = 20-lead plastic shrink small outline ? 5.30 mm body (ssop) examples: a) mcp3918a1-e/ml: address option a1, extended temperature, 20ld qfn package b) mcp3918a1t-e/ml: address option a1, tape and reel, extended temperature, 20ld qfn package a) mcp3918a1-e/ss: address option a1, extended temperature, 20ld ssop package b) mcp3918a1t-e/ss: address option a1, tape and reel, extended temperature, 20ld ssop package part no. x temperature range device /xx package x tape and reel xx address options
? 2014 microchip technology inc. ds20005287a-page 87 information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. it is your responsibility to ensure that your application meets with your specifications. microchip makes no representations or warranties of any kind whether express or implied, written or oral, statutory or otherwise, related to the information, including but not limited to its condition, quality, performance, merchantability or fitness for purpose . microchip disclaims all liability arising from this information and its use. use of microchip devices in life support and/or safety applications is entirely at the buyer?s risk, and the buyer agrees to defend, indemnify and hold harmless microchip from any and all damages, claims, suits, or expenses resulting from such use. no licenses are conveyed, implicitly or otherwise, under any microchip intellectual property rights. trademarks the microchip name and logo, the microchip logo, dspic, flashflex, k ee l oq , k ee l oq logo, mplab, pic, picmicro, picstart, pic 32 logo, rfpic, sst, sst logo, superflash and uni/o are registered trademarks of microchip technology incorporated in the u.s.a. and other countries. filterlab, hampshire, hi-tech c, linear active thermistor, mtp, seeval and the embedded control solutions company are registered trademarks of microchip technology incorporated in the u.s.a. silicon storage technology is a registered trademark of microchip technology inc. in other countries. analog-for-the-digital age, app lication maestro, bodycom, chipkit, chipkit logo, codeguard, dspicdem, dspicdem.net, dspicworks, dsspeak, ecan, economonitor, fansense, hi-tide, in-circuit serial programming, icsp, mindi, miwi, mpasm, mpf, mplab certified logo, mplib, mplink, mtouch, omniscient code generation, picc, picc-18, picdem, picdem.net, pickit, pictail, real ice, rflab, select mode, sqi, serial quad i/o, total endurance, tsharc, uniwindriver, wiperlock, zena and z-scale are trademarks of microchip technology incorporated in the u.s.a. and other countries. sqtp is a service mark of microchip technology incorporated in the u.s.a. gestic and ulpp are registered trademarks of microchip technology germany ii gmbh & co. kg, a subsidiary of microchip technology inc., in other countries. all other trademarks mentioned herein are property of their respective companies. ? 2014, microchip technology incorporated, printed in the u.s.a., all rights reserved. printed on recycled paper. isbn: 978-1-63276-214-6 note the following details of the code protection feature on microchip devices: ? microchip products meet the specification cont ained in their particular microchip data sheet. ? microchip believes that its family of products is one of the most secure families of its kind on the market today, when used i n the intended manner and under normal conditions. ? there are dishonest and possibly illegal methods used to breach the code protection feature. all of these methods, to our knowledge, require using the microchip produc ts in a manner outside the operating specif ications contained in microchip?s data sheets. most likely, the person doing so is engaged in theft of intellectual property. ? microchip is willing to work with the customer who is concerned about the integrity of their code. ? neither microchip nor any other semiconduc tor manufacturer can guarantee the security of their code. code protection does not mean that we are guaranteeing the product as ?unbreakable.? code protection is constantly evolving. we at microchip are co mmitted to continuously improvin g the code protection features of our products. attempts to break microchip?s code protection feature may be a violation of the digital millennium copyright act. if such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that act. microchip received iso/ts-16949:2009 certification for its worldwide headquarters, design and wafer fabrication facilities in chandler and tempe, arizona; gresham, oregon and design centers in california and india. the company?s quality system processes and procedures are for its pic ? mcus and dspic ? dscs, k ee l oq ? code hopping devices, serial eeproms, microperipherals, nonvolatile memory and analog products. in addition, microchip?s quality system for the design and manufacture of development systems is iso 9001:2000 certified. quality management s ystem certified by dnv == iso/ts 16949 ==
ds20005287a-page 88 ? 2014 microchip technology inc. americas corporate office 2355 west chandler blvd. chandler, az 85224-6199 tel: 480-792-7200 fax: 480-792-7277 technical support: http://www.microchip.com/ support web address: www.microchip.com atlanta duluth, ga tel: 678-957-9614 fax: 678-957-1455 austin, tx tel: 512-257-3370 boston westborough, ma tel: 774-760-0087 fax: 774-760-0088 chicago itasca, il tel: 630-285-0071 fax: 630-285-0075 cleveland independence, oh tel: 216-447-0464 fax: 216-447-0643 dallas addison, tx tel: 972-818-7423 fax: 972-818-2924 detroit novi, mi tel: 248-848-4000 houston, tx tel: 281-894-5983 indianapolis noblesville, in tel: 317-773-8323 fax: 317-773-5453 los angeles mission viejo, ca tel: 949-462-9523 fax: 949-462-9608 new york, ny tel: 631-435-6000 san jose, ca tel: 408-735-9110 canada - toronto tel: 905-673-0699 fax: 905-673-6509 asia/pacific asia pacific office suites 3707-14, 37th floor tower 6, the gateway harbour city, kowloon hong kong tel: 852-2943-5100 fax: 852-2401-3431 australia - sydney tel: 61-2-9868-6733 fax: 61-2-9868-6755 china - beijing tel: 86-10-8569-7000 fax: 86-10-8528-2104 china - chengdu tel: 86-28-8665-5511 fax: 86-28-8665-7889 china - chongqing tel: 86-23-8980-9588 fax: 86-23-8980-9500 china - hangzhou tel: 86-571-8792-8115 fax: 86-571-8792-8116 china - hong kong sar tel: 852-2943-5100 fax: 852-2401-3431 china - nanjing tel: 86-25-8473-2460 fax: 86-25-8473-2470 china - qingdao tel: 86-532-8502-7355 fax: 86-532-8502-7205 china - shanghai tel: 86-21-5407-5533 fax: 86-21-5407-5066 china - shenyang tel: 86-24-2334-2829 fax: 86-24-2334-2393 china - shenzhen tel: 86-755-8864-2200 fax: 86-755-8203-1760 china - wuhan tel: 86-27-5980-5300 fax: 86-27-5980-5118 china - xian tel: 86-29-8833-7252 fax: 86-29-8833-7256 china - xiamen tel: 86-592-2388138 fax: 86-592-2388130 china - zhuhai tel: 86-756-3210040 fax: 86-756-3210049 asia/pacific india - bangalore tel: 91-80-3090-4444 fax: 91-80-3090-4123 india - new delhi tel: 91-11-4160-8631 fax: 91-11-4160-8632 india - pune tel: 91-20-3019-1500 japan - osaka tel: 81-6-6152-7160 fax: 81-6-6152-9310 japan - tokyo tel: 81-3-6880- 3770 fax: 81-3-6880-3771 korea - daegu tel: 82-53-744-4301 fax: 82-53-744-4302 korea - seoul tel: 82-2-554-7200 fax: 82-2-558-5932 or 82-2-558-5934 malaysia - kuala lumpur tel: 60-3-6201-9857 fax: 60-3-6201-9859 malaysia - penang tel: 60-4-227-8870 fax: 60-4-227-4068 philippines - manila tel: 63-2-634-9065 fax: 63-2-634-9069 singapore tel: 65-6334-8870 fax: 65-6334-8850 taiwan - hsin chu tel: 886-3-5778-366 fax: 886-3-5770-955 taiwan - kaohsiung tel: 886-7-213-7830 taiwan - taipei tel: 886-2-2508-8600 fax: 886-2-2508-0102 thailand - bangkok tel: 66-2-694-1351 fax: 66-2-694-1350 europe austria - wels tel: 43-7242-2244-39 fax: 43-7242-2244-393 denmark - copenhagen tel: 45-4450-2828 fax: 45-4485-2829 france - paris tel: 33-1-69-53-63-20 fax: 33-1-69-30-90-79 germany - dusseldorf tel: 49-2129-3766400 germany - munich tel: 49-89-627-144-0 fax: 49-89-627-144-44 germany - pforzheim tel: 49-7231-424750 italy - milan tel: 39-0331-742611 fax: 39-0331-466781 italy - venice tel: 39-049-7625286 netherlands - drunen tel: 31-416-690399 fax: 31-416-690340 poland - warsaw tel: 48-22-3325737 spain - madrid tel: 34-91-708-08-90 fax: 34-91-708-08-91 sweden - stockholm tel: 46-8-5090-4654 uk - wokingham tel: 44-118-921-5800 fax: 44-118-921-5820 worldwide sales and service 03/25/14


▲Up To Search▲   

 
Price & Availability of MCP3918A1T-ESS

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X